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
1 changed files with 7 additions and 0 deletions

View File

@ -759,6 +759,13 @@ public final class StorageContainerManager extends ServiceRuntimeInfoImpl
} }
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);
} }