HBASE-9350 In ChaosMonkey, MoveRegionsOfTableAction throws UnknownRegionException
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1517874 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54d0f9f800
commit
7cde56cd37
|
@ -59,7 +59,7 @@ public class MoveRegionsOfTableAction extends Action {
|
||||||
String destServerName =
|
String destServerName =
|
||||||
servers[RandomUtils.nextInt(servers.length)].getServerName();
|
servers[RandomUtils.nextInt(servers.length)].getServerName();
|
||||||
LOG.debug("Moving " + regionInfo.getRegionNameAsString() + " to " + destServerName);
|
LOG.debug("Moving " + regionInfo.getRegionNameAsString() + " to " + destServerName);
|
||||||
admin.move(regionInfo.getRegionName(), Bytes.toBytes(destServerName));
|
admin.move(regionInfo.getEncodedNameAsBytes(), Bytes.toBytes(destServerName));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.debug("Error moving region", e);
|
LOG.debug("Error moving region", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue