hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject git commit: HBASE-11588 RegionServerMetricsWrapperRunnable misused the 'period' parameter (Victor Xu)
Date Sat, 26 Jul 2014 04:33:28 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 b7e0bde34 -> 6f60f2171


HBASE-11588 RegionServerMetricsWrapperRunnable misused the 'period' parameter (Victor Xu)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6f60f217
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6f60f217
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6f60f217

Branch: refs/heads/branch-1
Commit: 6f60f21711da4962a3cffa87a791bb6187720e35
Parents: b7e0bde
Author: Ted Yu <tedyu@apache.org>
Authored: Sat Jul 26 04:33:14 2014 +0000
Committer: Ted Yu <tedyu@apache.org>
Committed: Sat Jul 26 04:33:14 2014 +0000

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6f60f217/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
index ef6bc8c..3654835 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
@@ -419,7 +419,7 @@ class MetricsRegionServerWrapperImpl
       // assume that it took PERIOD seconds to start the executor.
       // this is a guess but it's a pretty good one.
       if (lastRan == 0) {
-        lastRan = currentTime - (period * 1000);
+        lastRan = currentTime - period;
       }
 
 


Mime
View raw message