From e2a90a71143f480621ccd935a0b9477d7ee4016f Mon Sep 17 00:00:00 2001 From: Jonathan M Hsieh Date: Wed, 8 Apr 2015 14:45:27 -0700 Subject: [PATCH] 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. --- .../apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java index 9cb2b4454f5..dd7c61acfd6 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java @@ -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