hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: Debugging around the ask if a region is splittable -- doesn't seem to be working
Date Mon, 15 May 2017 05:45:10 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-14614 d43df0ed6 -> 50511ad24


Debugging around the ask if a region is splittable -- doesn't seem to be working


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

Branch: refs/heads/HBASE-14614
Commit: 50511ad24a2343cce8a24d69a61c930f2fb4ac40
Parents: d43df0e
Author: Michael Stack <stack@apache.org>
Authored: Sun May 14 22:45:05 2017 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Sun May 14 22:45:05 2017 -0700

----------------------------------------------------------------------
 .../hbase/master/assignment/SplitTableRegionProcedure.java       | 1 +
 .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java  | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/50511ad2/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
index 4ed1931..6815e9f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/SplitTableRegionProcedure.java
@@ -365,6 +365,7 @@ public class SplitTableRegionProcedure
         GetRegionInfoResponse response =
             Util.getRegionInfoResponse(env, node.getRegionLocation(), node.getRegionInfo());
         splittable = response.hasSplittable() && response.getSplittable();
+        LOG.info("REMOVE splittable " + splittable + " " + this + " " + node);
       } catch (IOException e) {
         splittableCheckIOE = e;
       }

http://git-wip-us.apache.org/repos/asf/hbase/blob/50511ad2/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 285b529..b06e226 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1382,7 +1382,9 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver,
Regi
 
   @Override
   public boolean isSplittable() {
-    return isAvailable() && !hasReferences();
+    boolean result = isAvailable() && !hasReferences();
+    LOG.info("ASKED IF SPLITTABLE " + result, new Throwable("LOGGING"));
+    return result;
   }
 
   @Override


Mime
View raw message