hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acmur...@apache.org
Subject svn commit: r679578 - in /hadoop/core/trunk: CHANGES.txt src/mapred/org/apache/hadoop/mapred/JobInProgress.java
Date Thu, 24 Jul 2008 22:16:14 GMT
Author: acmurthy
Date: Thu Jul 24 15:16:14 2008
New Revision: 679578

URL: http://svn.apache.org/viewvc?rev=679578&view=rev
Log:
HADOOP-3521. Reverted the missing cast to float for sending Counters' values to Hadoop metrics
which was removed by HADOOP-544.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=679578&r1=679577&r2=679578&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Jul 24 15:16:14 2008
@@ -931,6 +931,9 @@
     HADOOP-3645. MetricsTimeVaryingRate returns wrong value for
     metric_avg_time. (Lohit Vijayarenu via hairong)
 
+    HADOOP-3521. Reverted the missing cast to float for sending Counters' values
+    to Hadoop metrics which was removed by HADOOP-544. (acmurthy)   
+
 Release 0.17.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java?rev=679578&r1=679577&r2=679578&view=diff
==============================================================================
--- hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java (original)
+++ hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java Thu Jul 24 15:16:14
2008
@@ -233,7 +233,7 @@
       jobMetrics.setTag("group", group.getDisplayName());
       for (Counters.Counter counter : group) {
         jobMetrics.setTag("counter", counter.getDisplayName());
-        jobMetrics.setMetric("value", counter.getCounter());
+        jobMetrics.setMetric("value", (float) counter.getCounter());
         jobMetrics.update();
       }
     }



Mime
View raw message