hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17565 StochasticLoadBalancer may incorrectly skip balancing due to skewed multiplier sum - addendum resets min cost
Date Tue, 07 Feb 2017 20:25:03 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 5a0020e86 -> 0553290c6


HBASE-17565 StochasticLoadBalancer may incorrectly skip balancing due to skewed multiplier
sum - addendum resets min cost


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

Branch: refs/heads/branch-1
Commit: 0553290c6a893a74ea926535829dc2237fc48b04
Parents: 5a0020e
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Feb 7 12:24:54 2017 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Feb 7 12:24:54 2017 -0800

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/0553290c/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 8e3ec7c..b01c411 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
@@ -96,6 +96,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
 
   @Test
   public void testNeedBalance() {
+    float minCost = conf.getFloat("hbase.master.balancer.stochastic.minCostNeedBalance",
0.05f);
     conf.setFloat("hbase.master.balancer.stochastic.minCostNeedBalance", 1.0f);
     loadBalancer.setConf(conf);
     for (int[] mockCluster : clusterStateMocks) {
@@ -104,6 +105,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
       assertNull(plans);
     }
     // reset config
+    conf.setFloat("hbase.master.balancer.stochastic.minCostNeedBalance", minCost);
     loadBalancer.setConf(conf);
   }
 


Mime
View raw message