Apache-HBase commented on a change in pull request #350: HBASE-22642 Move
operations of RSGroup should allow retry and correct…
URL: https://github.com/apache/hbase/pull/350#discussion_r299340560
##########
File path:
hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsAdmin2.java
##########
@@ -459,4 +456,145 @@ public boolean evaluate() throws Exception {
Assert.assertEquals(null, rsGroupAdmin.getRSGroupInfo(fooGroup.getName()));
}
+ @Test
+ public void testCorrectRegionLocationByRetryMoveTables() throws Exception{
+ final RSGroupInfo newGroup = addGroup(getGroupName(name.getMethodName()),
1);
+ Iterator iterator = newGroup.getServers().iterator();
+ Address newGroupServer1 = (Address) iterator.next();
+ // create table
+ final byte[] familyNameBytes = Bytes.toBytes("f");
+ TEST_UTIL.createMultiRegionTable(tableName, familyNameBytes,
+ new Random().nextInt(8) + 4);
+
+ // randomly set a region state to SPLITTING to make move abort
+ RegionStateNode rsn = randomlySetRegionState(newGroup,
RegionState.State.SPLITTING, tableName);
+
Review comment:
whitespace:end of line
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services