HDDS-507. EventQueue should be shutdown on SCM shutdown. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
042bf74d5e
commit
236d16e3a5
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue