HBASE-19194 TestRSGroupsBase has some always false checks

This commit is contained in:
Andrew Purtell 2017-11-07 15:53:25 -08:00
parent 4132314f51
commit fd854b1e8d
1 changed files with 6 additions and 2 deletions

View File

@ -418,7 +418,7 @@ public abstract class TestRSGroupsBase {
getTableServerRegionMap().get(tableName);
final ServerName first = assignMap.entrySet().iterator().next().getKey();
for(RegionInfo region: admin.getTableRegions(tableName)) {
if(!assignMap.get(first).contains(region)) {
if(!assignMap.get(first).contains(region.getRegionNameAsString())) {
admin.move(region.getEncodedNameAsBytes(), Bytes.toBytes(first.getServerName()));
}
}
@ -528,7 +528,11 @@ public abstract class TestRSGroupsBase {
});
//verify that targetServer didn't open it
assertFalse(ProtobufUtil.getOnlineRegions(targetRS).contains(targetRegion));
for (RegionInfo region: ProtobufUtil.getOnlineRegions(targetRS)) {
if (targetRegion.equals(region.getRegionNameAsString())) {
fail("Target server opened region");
}
}
}
@Test