mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
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) {
|
public Thread newThread(final Runnable r) {
|
||||||
final Thread thread = defaultFactory.newThread(r);
|
final Thread thread = defaultFactory.newThread(r);
|
||||||
thread.setName("NiFi Site-to-Site Connection Pool Maintenance");
|
thread.setName("NiFi Site-to-Site Connection Pool Maintenance");
|
||||||
|
thread.setDaemon(true);
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -129,6 +129,8 @@ public class WriteAheadLocalStateProvider extends AbstractStateProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void shutdown() {
|
public synchronized void shutdown() {
|
||||||
|
executor.shutdown();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
writeAheadLog.shutdown();
|
writeAheadLog.shutdown();
|
||||||
} catch (final IOException ioe) {
|
} catch (final IOException ioe) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user