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 c3ba44d858
commit a4bd54f9d7
2 changed files with 5 additions and 0 deletions

View File

@ -2345,6 +2345,9 @@ Release 2.8.0 - UNRELEASED
HDFS-6885. Fix wrong use of BytesWritable in FSEditLogOp#RenameOp.
(Yi Liu via wheat9)
HDFS-7897. Shutdown metrics when stopping JournalNode.
(zhouyingchao via wheat9)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -207,6 +207,8 @@ public void stop(int rc) {
IOUtils.cleanup(LOG, j);
}
DefaultMetricsSystem.shutdown();
if (journalNodeInfoBeanName != null) {
MBeans.unregister(journalNodeInfoBeanName);
journalNodeInfoBeanName = null;