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
408b916175
commit
c2bfddac13
@ -110,7 +110,7 @@ public class TestRegionSplitPolicy {
|
||||
regions.add(mockRegion);
|
||||
assertFalse(policy.shouldSplit());
|
||||
// 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());
|
||||
|
||||
// Finally assert that even if loads of regions, we'll split at max size
|
||||
|
Loading…
x
Reference in New Issue
Block a user