HDFS-7897. Shutdown metrics when stopping JournalNode. Contributed by zhouyingchao.
This commit is contained in:
parent
c3ba44d858
commit
a4bd54f9d7
|
@ -2345,6 +2345,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-6885. Fix wrong use of BytesWritable in FSEditLogOp#RenameOp.
|
HDFS-6885. Fix wrong use of BytesWritable in FSEditLogOp#RenameOp.
|
||||||
(Yi Liu via wheat9)
|
(Yi Liu via wheat9)
|
||||||
|
|
||||||
|
HDFS-7897. Shutdown metrics when stopping JournalNode.
|
||||||
|
(zhouyingchao via wheat9)
|
||||||
|
|
||||||
Release 2.7.3 - UNRELEASED
|
Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -207,6 +207,8 @@ public class JournalNode implements Tool, Configurable, JournalNodeMXBean {
|
||||||
IOUtils.cleanup(LOG, j);
|
IOUtils.cleanup(LOG, j);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DefaultMetricsSystem.shutdown();
|
||||||
|
|
||||||
if (journalNodeInfoBeanName != null) {
|
if (journalNodeInfoBeanName != null) {
|
||||||
MBeans.unregister(journalNodeInfoBeanName);
|
MBeans.unregister(journalNodeInfoBeanName);
|
||||||
journalNodeInfoBeanName = null;
|
journalNodeInfoBeanName = null;
|
||||||
|
|
Loading…
Reference in New Issue