HBASE-19194 TestRSGroupsBase has some always false checks
This commit is contained in:
parent
4132314f51
commit
fd854b1e8d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue