wchevreuil commented on code in PR #6763:
URL: https://github.com/apache/hbase/pull/6763#discussion_r1988104136


##########
hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/CacheAwareLoadBalancer.java:
##########
@@ -160,6 +168,56 @@ private RegionInfo 
getRegionInfoByEncodedName(BalancerClusterState cluster, Stri
     return null;
   }
 
+  @Override
+  public void throttle(RegionPlan plan) {
+    Pair<ServerName, Float> rsRatio = 
this.regionCacheRatioOnOldServerMap.get(plan.getRegionName());
+    float ratioThreshold =
+      this.configuration.getFloat(CACHE_RATIO_THRESHOLD, 
CACHE_RATIO_THRESHOLD_DEFAULT);

Review Comment:
   Moved this and the sleepTime to the loadConf() method



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to