hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/3] git commit: HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi)
Date Tue, 23 Sep 2014 19:36:45 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/3d898fe1
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3d898fe1
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3d898fe1

Branch: refs/heads/branch-1
Commit: 3d898fe16a897c94b205e4e0be44f7d3ad8e3641
Parents: 47ae4c2
Author: Andrew Purtell <apurtell@apache.org>
Authored: Tue Sep 23 12:36:35 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Sep 23 12:36:35 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/3d898fe1/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 00f1e29..f3e9e29 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
@@ -339,7 +339,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