HDDS-507. EventQueue should be shutdown on SCM shutdown. Contributed by Xiaoyu Yao.

This commit is contained in:
Nanda kumar 2018-09-20 01:22:18 +05:30
parent 042bf74d5e
commit 236d16e3a5

View File

@ -759,6 +759,13 @@ public void stop() {
} }
unregisterMXBean(); unregisterMXBean();
// Event queue must be stopped before the DB store is closed at the end.
try {
LOG.info("Stopping SCM Event Queue.");
eventQueue.close();
} catch (Exception ex) {
LOG.error("SCM Event Queue stop failed", ex);
}
IOUtils.cleanupWithLogger(LOG, scmContainerManager); IOUtils.cleanupWithLogger(LOG, scmContainerManager);
} }