ソースを参照

HADOOP-7330. Fix MetricsSourceAdapter to use the value instead of the
object. (Luke Lu via omalley)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-203@1128115 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年 前
コミット
47a9f21aba

+ 5 - 0
CHANGES.txt

@@ -1,5 +1,10 @@
 Hadoop Change Log
 
+Release 0.20.203.1 - Unreleased
+
+    HADOOP-7330. Fix MetricsSourceAdapter to use the value instead of the 
+    object. (Luke Lu via omalley)
+
 Release 0.20.203.0 - 2011-5-11
 
     MAPREDUCE-1280. Update Eclipse plugin to the new eclipse.jdt API.

+ 1 - 1
src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java

@@ -102,7 +102,7 @@ class MetricsSourceAdapter implements DynamicMBean {
     if (LOG.isDebugEnabled()) {
       LOG.debug(attribute +": "+ a.getName() +"="+ a.getValue());
     }
-    return a;
+    return a.getValue();
   }
 
   public void setAttribute(Attribute attribute)