HBASE-24795 : TestRegionMover2#testWithSplitRegions fix (ADDENDUM)

This commit is contained in:
Viraj Jasani 2020-08-03 20:12:25 +05:30
parent ad7caf754a
commit 9ec484a031
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,9 @@ public class TestRegionMover2 {
Assert.assertEquals(0, regionServer.getNumberOfOnlineRegions()); Assert.assertEquals(0, regionServer.getNumberOfOnlineRegions());
LOG.debug("Successfully Unloaded, now Loading"); LOG.debug("Successfully Unloaded, now Loading");
HRegion hRegion = hRegions.get(1); HRegion hRegion = hRegions.get(1);
if (hRegion.getRegionInfo().getStartKey().length == 0) {
hRegion = hRegions.get(0);
}
int startKey = 0; int startKey = 0;
int endKey = Integer.MAX_VALUE; int endKey = Integer.MAX_VALUE;
if (hRegion.getRegionInfo().getStartKey().length > 0) { if (hRegion.getRegionInfo().getStartKey().length > 0) {