HDFS-7897. Shutdown metrics when stopping JournalNode. Contributed by zhouyingchao.

This commit is contained in:
Haohui Mai 2015-11-22 19:12:23 -08:00
parent afac7a2640
commit 529103c51f
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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;