HBASE-17616 Incorrect actions performed by CM

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Abhishek Singh Chouhan 2017-02-09 15:31:18 +05:30 committed by tedyu
parent 67fe516ec9
commit 807fcfd22f
1 changed files with 1 additions and 1 deletions

View File

@ -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) +