HBASE-21416 - fix TestRegionInfoDisplay flaky test
This commit is contained in:
parent
d084423b52
commit
003095cbca
|
@ -68,12 +68,13 @@ public class TestRegionInfoDisplay {
|
||||||
RegionState state = RegionState.createForTesting(convert(ri), RegionState.State.OPEN);
|
RegionState state = RegionState.createForTesting(convert(ri), RegionState.State.OPEN);
|
||||||
String descriptiveNameForDisplay =
|
String descriptiveNameForDisplay =
|
||||||
RegionInfoDisplay.getDescriptiveNameFromRegionStateForDisplay(state, conf);
|
RegionInfoDisplay.getDescriptiveNameFromRegionStateForDisplay(state, conf);
|
||||||
checkDescriptiveNameEquality(descriptiveNameForDisplay,state.toDescriptiveString(), startKey);
|
String originalDescriptive = state.toDescriptiveString();
|
||||||
|
checkDescriptiveNameEquality(descriptiveNameForDisplay, originalDescriptive, startKey);
|
||||||
|
|
||||||
conf.setBoolean("hbase.display.keys", true);
|
conf.setBoolean("hbase.display.keys", true);
|
||||||
Assert.assertArrayEquals(endKey, RegionInfoDisplay.getEndKeyForDisplay(ri, conf));
|
Assert.assertArrayEquals(endKey, RegionInfoDisplay.getEndKeyForDisplay(ri, conf));
|
||||||
Assert.assertArrayEquals(startKey, RegionInfoDisplay.getStartKeyForDisplay(ri, conf));
|
Assert.assertArrayEquals(startKey, RegionInfoDisplay.getStartKeyForDisplay(ri, conf));
|
||||||
Assert.assertEquals(state.toDescriptiveString(),
|
Assert.assertEquals(originalDescriptive,
|
||||||
RegionInfoDisplay.getDescriptiveNameFromRegionStateForDisplay(state, conf));
|
RegionInfoDisplay.getDescriptiveNameFromRegionStateForDisplay(state, conf));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue