hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From syuanji...@apache.org
Subject [31/50] [abbrv] hbase git commit: HBASE-17707 New More Accurate Table Skew cost function/generator - adendum ensure testTableSkewConvergesToZero finishes before timeout
Date Fri, 10 Mar 2017 22:10:11 GMT
HBASE-17707 New More Accurate Table Skew cost function/generator - adendum ensure testTableSkewConvergesToZero
finishes before timeout

Signed-off-by: tedyu <yuzhihong@gmail.com>


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

Branch: refs/heads/hbase-12439
Commit: ee1549cc9778af7124e3c7c6b187a0b124385a90
Parents: b53f354
Author: Kahlil Oppenheimer <kahliloppenheimer@gmail.com>
Authored: Tue Mar 7 12:34:54 2017 -0500
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Mar 7 12:37:16 2017 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/ee1549cc/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
index fee98c9..37ff35f 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
@@ -268,8 +268,8 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
         costFunction = new StochasticLoadBalancer.TableSkewCostFunction(conf);
     CandidateGenerator generator = new TableSkewCandidateGenerator();
     for (int i = 0; i < 100; i++) {
-      int numNodes = rand.nextInt(500) + 1; // num nodes between 1 - 500
-      int numTables = rand.nextInt(500) + 1; // num tables between 1 and 1000
+      int numNodes = 1 + rand.nextInt(5 * i + 1);
+      int numTables = 1 + rand.nextInt(5 * i + 1);
       int numRegions = rand.nextInt(numTables * 99) + Math.max(numTables, numNodes); // num
regions between max(numTables, numNodes) - numTables*100
       int numRegionsPerServer = rand.nextInt(numRegions / numNodes) + 1; // num regions per
server (except one) between 1 and numRegions / numNodes
 


Mime
View raw message