From e06b4bcf355b78030436e8339a9e0ade71957483 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Tue, 23 Sep 2014 12:36:34 -0700 Subject: [PATCH] HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi) --- .../hadoop/hbase/master/balancer/StochasticLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());