hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r899832 - /hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java
Date Fri, 15 Jan 2010 22:22:51 GMT
Author: apurtell
Date: Fri Jan 15 22:22:51 2010
New Revision: 899832

URL: http://svn.apache.org/viewvc?rev=899832&view=rev
Log:
HBASE-196 Export HDFS read and write latency as a metric; apply missing hunk from last commit
on this issue

Modified:
    hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java

Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java?rev=899832&r1=899831&r2=899832&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java
(original)
+++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java
Fri Jan 15 22:22:51 2010
@@ -242,6 +242,12 @@
         Long.valueOf(this.blockCacheCount.get()));
     sb = Strings.appendKeyValue(sb, this.blockCacheHitRatio.getName(),
         Long.valueOf(this.blockCacheHitRatio.get()));
+    sb = Strings.appendKeyValue(sb, "fsReadLatency",
+        Long.valueOf(this.fsReadLatency.getPreviousIntervalAverageTime()));
+    sb = Strings.appendKeyValue(sb, "fsWriteLatency",
+        Long.valueOf(this.fsWriteLatency.getPreviousIntervalAverageTime()));
+    sb = Strings.appendKeyValue(sb, "fsSyncLatency",
+        Long.valueOf(this.fsSyncLatency.getPreviousIntervalAverageTime()));
     return sb.toString();
   }
 }
\ No newline at end of file



Mime
View raw message