hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [23/50] [abbrv] hbase git commit: HBASE-13412 ADDENDUM Region split decisions should have jitter
Date Thu, 09 Apr 2015 20:59:28 GMT
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.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e2a90a71
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e2a90a71
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e2a90a71

Branch: refs/heads/hbase-12439
Commit: e2a90a71143f480621ccd935a0b9477d7ee4016f
Parents: 62d47e1
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Wed Apr 8 14:45:27 2015 -0700
Committer: Jonathan M Hsieh <jmhsieh@apache.org>
Committed: Wed Apr 8 14:51:25 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e2a90a71/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java
----------------------------------------------------------------------
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 9cb2b44..dd7c61a 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


Mime
View raw message