hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r632186 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Date Fri, 29 Feb 2008 00:53:05 GMT
Author: dhruba
Date: Thu Feb 28 16:53:03 2008
New Revision: 632186

URL: http://svn.apache.org/viewvc?rev=632186&view=rev
Log:
HADOOP-2903.  Fix exception generated by Metrics while using pushMetric().
(girish vaitheeswaran via dhruba)


Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=632186&r1=632185&r2=632186&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Feb 28 16:53:03 2008
@@ -94,6 +94,9 @@
     HADOOP-2904.  Fix to RPC metrics to log the correct host name. 
     (girish vaitheeswaran via dhruba)
 
+    HADOOP-2903.  Fix exception generated by Metrics while using pushMetric().
+    (girish vaitheeswaran via dhruba)
+
 Release 0.16.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java?rev=632186&r1=632185&r2=632186&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
(original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Thu Feb 28 16:53:03 2008
@@ -126,7 +126,7 @@
   public synchronized void pushMetric(final MetricsRecord mr) {
     intervalHeartBeat();
     mr.incrMetric(name + "_num_ops", getPreviousIntervalNumOps());
-    mr.incrMetric(name + "_avg_time", getPreviousIntervalAverageTime());
+    mr.incrMetric(name + "_avg_time", (int)getPreviousIntervalAverageTime());
   }
   
   /**



Mime
View raw message