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:31:32 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 abce9ecb4 -> 6fe9af629


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/6fe9af62
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6fe9af62
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6fe9af62

Branch: refs/heads/0.98
Commit: 6fe9af629eecd6fa95c6ca5ab11afc14fa20c7b0
Parents: abce9ec
Author: Ted Yu <tedyu@apache.org>
Authored: Sat Jul 26 04:31:06 2014 +0000
Committer: Ted Yu <tedyu@apache.org>
Committed: Sat Jul 26 04:31:06 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/6fe9af62/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 9f88e70..bda7d0d 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