hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whe...@apache.org
Subject hadoop git commit: HDFS-7897. Shutdown metrics when stopping JournalNode. Contributed by zhouyingchao.
Date Mon, 23 Nov 2015 03:14:23 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk c3ba44d85 -> a4bd54f9d


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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a4bd54f9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a4bd54f9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a4bd54f9

Branch: refs/heads/trunk
Commit: a4bd54f9d776f39080b41913afa455f8c0f6e46d
Parents: c3ba44d
Author: Haohui Mai <wheat9@apache.org>
Authored: Sun Nov 22 19:12:23 2015 -0800
Committer: Haohui Mai <wheat9@apache.org>
Committed: Sun Nov 22 19:12:23 2015 -0800

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                       | 3 +++
 .../java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java  | 2 ++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a4bd54f9/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index efd6433..528a95e 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -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

http://git-wip-us.apache.org/repos/asf/hadoop/blob/a4bd54f9/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java
index b2dc600..d08b40f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNode.java
@@ -207,6 +207,8 @@ public class JournalNode implements Tool, Configurable, JournalNodeMXBean
{
       IOUtils.cleanup(LOG, j);
     }
 
+    DefaultMetricsSystem.shutdown();
+
     if (journalNodeInfoBeanName != null) {
       MBeans.unregister(journalNodeInfoBeanName);
       journalNodeInfoBeanName = null;


Mime
View raw message