hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [2/2] hbase git commit: HBASE-18924 Backport HBASE-18568 (Correct metric of numRegions) to branch-1.2 and branch-1.3
Date Mon, 09 Oct 2017 14:27:28 GMT
HBASE-18924 Backport HBASE-18568 (Correct metric of numRegions) to branch-1.2 and branch-1.3

Signed-off-by: Mike Drob <mdrob@apache.org>


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

Branch: refs/heads/branch-1.3
Commit: 0d836d986f04d8e6ca09774ff08db603ae34c21f
Parents: 15288c0
Author: Peter Somogyi <psomogyi@cloudera.com>
Authored: Fri Oct 6 10:45:27 2017 -0700
Committer: Mike Drob <mdrob@apache.org>
Committed: Mon Oct 9 09:26:36 2017 -0500

----------------------------------------------------------------------
 .../apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0d836d98/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
----------------------------------------------------------------------
diff --git a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
index 8f17e93..924da8b 100644
--- a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
+++ b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
@@ -69,6 +69,7 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
                                  MetricsRegionAggregateSourceImpl aggregate) {
     this.regionWrapper = regionWrapper;
     agg = aggregate;
+    hashCode = regionWrapper.getRegionHashCode();
     agg.register(this);
 
     LOG.debug("Creating new MetricsRegionSourceImpl for table " +
@@ -100,8 +101,6 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
 
     regionScanKey = regionNamePrefix + MetricsRegionServerSource.SCAN_KEY + suffix;
     regionScan = registry.getCounter(regionScanKey, 0L);
-
-    hashCode = regionWrapper.getRegionHashCode();
   }
 
   @Override


Mime
View raw message