chandrasekhar-188k commented on code in PR #7263:
URL: https://github.com/apache/hbase/pull/7263#discussion_r2317664444
##########
hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/CacheAwareLoadBalancer.java:
##########
@@ -207,6 +207,9 @@ protected List<RegionPlan> balanceTable(TableName tableName,
final Map<String, Pair<ServerName, Float>> snapshot = new HashMap<>();
snapshot.putAll(this.regionCacheRatioOnOldServerMap);
List<RegionPlan> plans = super.balanceTable(tableName, loadOfOneTable);
+ if(plans == null || plans.isEmpty()) {
Review Comment:
empty check not required, below sort on empty list is a No-op.
--
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]