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:
Jonathan M Hsieh 2015-04-08 14:45:27 -07:00
parent 62d47e175c
commit e2a90a7114
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,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