in flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/JdbcChannelProviderFactory.java [46:57]
public static synchronized void releaseProvider(String name) {
if (!INSTANCES.remove(name)) {
throw new JdbcChannelException("Attempt to release non-existant channel: "
+ name);
}
if (INSTANCES.size() == 0) {
// Deinitialize the provider
PROVIDER.close();
PROVIDER = null;
}
}