diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java index 06c341bb7ae..2c4fb5832bc 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java @@ -338,7 +338,7 @@ public class StochasticLoadBalancer extends BaseLoadBalancer { if (rLoads == null) { // There was nothing there rLoads = new ArrayDeque(); - } else if (rLoads.size() >= 15) { + } else if (rLoads.size() >= numRegionLoadsToRemember) { rLoads.remove(); } rLoads.add(entry.getValue());