hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r706457 - in /hadoop/core/branches/branch-0.19: CHANGES.txt src/core/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Date Mon, 20 Oct 2008 23:34:27 GMT
Author: szetszwo
Date: Mon Oct 20 16:34:26 2008
New Revision: 706457

URL: http://svn.apache.org/viewvc?rev=706457&view=rev
Log:
HADOOP-4369. Use setMetric(...) instead of incrMetric(...) for metrics averages.
  Contributed by Brian Bockelman

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

Modified: hadoop/core/branches/branch-0.19/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/CHANGES.txt?rev=706457&r1=706456&r2=706457&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.19/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.19/CHANGES.txt Mon Oct 20 16:34:26 2008
@@ -959,6 +959,9 @@
     HADOOP-4399. Make fuse-dfs multi-thread access safe.
     (Pete Wyckoff via dhruba)
 
+    HADOOP-4369. Use setMetric(...) instead of incrMetric(...) for metrics
+    averages.  (Brian Bockelman via szetszwo)
+
 Release 0.18.1 - 2008-09-17
 
   IMPROVEMENTS

Modified: hadoop/core/branches/branch-0.19/src/core/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/src/core/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java?rev=706457&r1=706456&r2=706457&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.19/src/core/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
(original)
+++ hadoop/core/branches/branch-0.19/src/core/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
Mon Oct 20 16:34:26 2008
@@ -134,7 +134,7 @@
     intervalHeartBeat();
     try {
       mr.incrMetric(name + "_num_ops", getPreviousIntervalNumOps());
-      mr.incrMetric(name + "_avg_time", getPreviousIntervalAverageTime());
+      mr.setMetric(name + "_avg_time", getPreviousIntervalAverageTime());
     } catch (Exception e) {
       LOG.info("pushMetric failed for " + name + "\n" +
           StringUtils.stringifyException(e));



Mime
View raw message