HBASE-17616 Incorrect actions performed by CM
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
67fe516ec9
commit
807fcfd22f
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue