HBASE-13412 ADDENDUM Region split decisions should have jitter
This corrects the jitter threshold constant in the unit test so that it will pass regularly.
This commit is contained in:
parent
62d47e175c
commit
e2a90a7114
|
@ -111,7 +111,7 @@ public class TestRegionSplitPolicy {
|
||||||
regions.add(mockRegion);
|
regions.add(mockRegion);
|
||||||
assertFalse(policy.shouldSplit());
|
assertFalse(policy.shouldSplit());
|
||||||
// make sure its just over; verify it'll split
|
// make sure its just over; verify it'll split
|
||||||
Mockito.doReturn((long)(maxSplitSize * 1.025 + 1)).when(mockStore).getSize();
|
Mockito.doReturn((long)(maxSplitSize * 1.25 + 1)).when(mockStore).getSize();
|
||||||
assertTrue(policy.shouldSplit());
|
assertTrue(policy.shouldSplit());
|
||||||
|
|
||||||
// Finally assert that even if loads of regions, we'll split at max size
|
// Finally assert that even if loads of regions, we'll split at max size
|
||||||
|
|
Loading…
Reference in New Issue