hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/3] git commit: HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi)
Date Tue, 23 Sep 2014 19:36:46 GMT
HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn
Choi)


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

Branch: refs/heads/0.98
Commit: 0033b9a007fda6d52045ec05b8ebcf8ec15ff8a0
Parents: 1fb32e1
Author: Andrew Purtell <apurtell@apache.org>
Authored: Tue Sep 23 12:36:36 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Sep 23 12:36:36 2014 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/master/balancer/StochasticLoadBalancer.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0033b9a0/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
----------------------------------------------------------------------
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 21a60a8..6b246da 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
@@ -325,7 +325,7 @@ public class StochasticLoadBalancer extends BaseLoadBalancer {
         if (rLoads == null) {
           // There was nothing there
           rLoads = new ArrayDeque<RegionLoad>();
-        } else if (rLoads.size() >= 15) {
+        } else if (rLoads.size() >= numRegionLoadsToRemember) {
           rLoads.remove();
         }
         rLoads.add(entry.getValue());


Mime
View raw message