mirror of https://github.com/apache/nifi.git
NIFI-259: Ensured that thread pools were being shutdown properly
This commit is contained in:
parent
f6ec437bc7
commit
09357297e2
|
@ -182,6 +182,7 @@ public class EndpointConnectionPool {
|
|||
public Thread newThread(final Runnable r) {
|
||||
final Thread thread = defaultFactory.newThread(r);
|
||||
thread.setName("NiFi Site-to-Site Connection Pool Maintenance");
|
||||
thread.setDaemon(true);
|
||||
return thread;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -129,6 +129,8 @@ public class WriteAheadLocalStateProvider extends AbstractStateProvider {
|
|||
|
||||
@Override
|
||||
public synchronized void shutdown() {
|
||||
executor.shutdown();
|
||||
|
||||
try {
|
||||
writeAheadLog.shutdown();
|
||||
} catch (final IOException ioe) {
|
||||
|
|
Loading…
Reference in New Issue