HBASE-12064 hbase.master.balancer.stochastic.numRegionLoadsToRemember is not used (Junegunn Choi)
This commit is contained in:
parent
d94f24b901
commit
e06b4bcf35
|
@ -338,7 +338,7 @@ public class StochasticLoadBalancer extends BaseLoadBalancer {
|
||||||
if (rLoads == null) {
|
if (rLoads == null) {
|
||||||
// There was nothing there
|
// There was nothing there
|
||||||
rLoads = new ArrayDeque<RegionLoad>();
|
rLoads = new ArrayDeque<RegionLoad>();
|
||||||
} else if (rLoads.size() >= 15) {
|
} else if (rLoads.size() >= numRegionLoadsToRemember) {
|
||||||
rLoads.remove();
|
rLoads.remove();
|
||||||
}
|
}
|
||||||
rLoads.add(entry.getValue());
|
rLoads.add(entry.getValue());
|
||||||
|
|
Loading…
Reference in New Issue