HBASE-17616 Incorrect actions performed by CM

Signed-off-by: tedyu <yuzhih...@gmail.com>


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

Branch: refs/heads/branch-1.2
Commit: 7bfb930a81a3235a62c3cf145d5b699a105011fb
Parents: 0976b86
Author: Abhishek Singh Chouhan <abhishekchouhan...@gmail.com>
Authored: Thu Feb 9 15:31:18 2017 +0530
Committer: Andrew Purtell <apurt...@apache.org>
Committed: Thu Feb 9 15:09:57 2017 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7bfb930a/hbase-it/src/test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java
----------------------------------------------------------------------
diff --git 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java
index 2a5ae55..ce9ca70 100644
--- 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java
+++ 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/DistributedHBaseCluster.java
@@ -269,7 +269,7 @@ public class DistributedHBaseCluster extends HBaseCluster {
   public ServerName getServerHoldingRegion(TableName tn, byte[] regionName) 
throws IOException {
     HRegionLocation regionLoc = null;
     try (RegionLocator locator = connection.getRegionLocator(tn)) {
-      regionLoc = locator.getRegionLocation(regionName);
+      regionLoc = locator.getRegionLocation(regionName, true);
     }
     if (regionLoc == null) {
       LOG.warn("Cannot find region server holding region " + 
Bytes.toString(regionName) +

Reply via email to