You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/11/28 14:24:08 UTC

[hbase] 02/02: HBASE-26455 TestStochasticLoadBalancerRegionReplicaWithRacks fails consistently (#3879)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 799217ee69dacdaaf0b32d49a8d8e1884b4c1bbd
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Nov 25 21:40:46 2021 +0800

    HBASE-26455 TestStochasticLoadBalancerRegionReplicaWithRacks fails consistently (#3879)
    
    Signed-off-by: Xiaolin Ha <ha...@apache.org>
    Signed-off-by: GeorryHuang <hu...@apache.org>
---
 .../balancer/TestStochasticLoadBalancerRegionReplicaWithRacks.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancerRegionReplicaWithRacks.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancerRegionReplicaWithRacks.java
index 483ed28..c0b3724 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancerRegionReplicaWithRacks.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancerRegionReplicaWithRacks.java
@@ -77,10 +77,9 @@ public class TestStochasticLoadBalancerRegionReplicaWithRacks extends BalancerTe
 
   @Test
   public void testRegionReplicationOnLargeClusterWithRacks() {
-    conf.setBoolean("hbase.master.balancer.stochastic.runMaxSteps", false);
-    conf.setLong(StochasticLoadBalancer.MAX_STEPS_KEY, 5000L);
-    conf.setFloat("hbase.master.balancer.stochastic.maxMovePercent", 1.0f);
-    conf.setLong("hbase.master.balancer.stochastic.maxRunningTime", 10 * 1000); // 10 sec
+    conf.setBoolean("hbase.master.balancer.stochastic.runMaxSteps", true);
+    conf.setLong(StochasticLoadBalancer.MAX_STEPS_KEY, 100000000L);
+    conf.setLong("hbase.master.balancer.stochastic.maxRunningTime", 120 * 1000); // 10 sec
     loadBalancer.onConfigurationChange(conf);
     int numNodes = 100;
     int numRegions = numNodes * 30;