diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 4a739a334af..6cca91b0de6 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -159,6 +159,9 @@ Release 2.4.0 - UNRELEASED HADOOP-10437. Fix the javac warnings in the conf and the util package. (szetszwo) + HADOOP-10441. Namenode metric "rpc.RetryCache/NameNodeRetryCache.CacheHit" + can't be correctly processed by Ganglia. (jing9) + BREAKDOWN OF HADOOP-10184 SUBTASKS AND RELATED JIRAS HADOOP-10185. FileSystem API for ACLs. (cnauroth) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RetryCacheMetrics.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RetryCacheMetrics.java index 7ca5baa6a1c..a853d642e2f 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RetryCacheMetrics.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RetryCacheMetrics.java @@ -40,7 +40,7 @@ public class RetryCacheMetrics { final String name; RetryCacheMetrics(RetryCache retryCache) { - name = "RetryCache/"+ retryCache.getCacheName(); + name = "RetryCache."+ retryCache.getCacheName(); registry = new MetricsRegistry(name); if (LOG.isDebugEnabled()) { LOG.debug("Initialized "+ registry); diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRetryCacheMetrics.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRetryCacheMetrics.java index b7d8f7d0bcd..b95286ccb51 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRetryCacheMetrics.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRetryCacheMetrics.java @@ -51,7 +51,7 @@ public class TestRetryCacheMetrics { } private void checkMetrics(long hit, long cleared, long updated) { - MetricsRecordBuilder rb = getMetrics("RetryCache/" + cacheName); + MetricsRecordBuilder rb = getMetrics("RetryCache." + cacheName); assertCounter("CacheHit", hit, rb); assertCounter("CacheCleared", cleared, rb); assertCounter("CacheUpdated", updated, rb);