hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/3] git commit: HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi)
Date Tue, 23 Sep 2014 19:36:44 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 1fb32e12f -> 0033b9a00
  refs/heads/branch-1 47ae4c2d2 -> 3d898fe16
  refs/heads/master d94f24b90 -> e06b4bcf3


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/e06b4bcf
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e06b4bcf
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e06b4bcf

Branch: refs/heads/master
Commit: e06b4bcf355b78030436e8339a9e0ade71957483
Parents: d94f24b
Author: Andrew Purtell <apurtell@apache.org>
Authored: Tue Sep 23 12:36:34 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Sep 23 12:36:34 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/e06b4bcf/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 06c341b..2c4fb58 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<RegionLoad>();
-        } else if (rLoads.size() >= 15) {
+        } else if (rLoads.size() >= numRegionLoadsToRemember) {
           rLoads.remove();
         }
         rLoads.add(entry.getValue());


Mime
View raw message