ClusterService: improve update thread shutdown logic.

This commit is contained in:
Boaz Leskes 2015-02-25 08:40:55 +01:00
parent 98ce594ac8
commit 674fe9ba28
1 changed files with 1 additions and 6 deletions

View File

@ -166,12 +166,7 @@ public class InternalClusterService extends AbstractLifecycleComponent<ClusterSe
onGoingTimeout.cancel();
onGoingTimeout.listener.onClose();
}
updateTasksExecutor.shutdown();
try {
updateTasksExecutor.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
// ignore
}
ThreadPool.terminate(updateTasksExecutor, 10, TimeUnit.SECONDS);
remove(localNodeMasterListeners);
}