hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r632189 - in /hadoop/core/branches/branch-0.16: CHANGES.txt src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Date Fri, 29 Feb 2008 01:00:23 GMT
Author: dhruba
Date: Thu Feb 28 17:00:22 2008
New Revision: 632189

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


Modified:
    hadoop/core/branches/branch-0.16/CHANGES.txt
    hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java

Modified: hadoop/core/branches/branch-0.16/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.16/CHANGES.txt?rev=632189&r1=632188&r2=632189&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.16/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.16/CHANGES.txt Thu Feb 28 17:00:22 2008
@@ -79,6 +79,9 @@
     HADOOP-2894. Fix a problem to do with tasktrackers failing to connect to
     JobTracker upon reinitialization. (Owen O'Malley via ddas).
 
+    HADOOP-2903.  Fix exception generated by Metrics while using pushMetric().
+    (girish vaitheeswaran via dhruba)
+
 Release 0.16.0 - 2008-02-07
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java?rev=632189&r1=632188&r2=632189&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
(original)
+++ hadoop/core/branches/branch-0.16/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Thu Feb 28 17:00:22 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