HDFS-7897. Shutdown metrics when stopping JournalNode. Contributed by zhouyingchao.
This commit is contained in:
parent
afac7a2640
commit
529103c51f
|
@ -1490,6 +1490,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