wchevreuil commented on code in PR #4799:
URL: https://github.com/apache/hbase/pull/4799#discussion_r1120400988
##########
hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java:
##########
@@ -452,7 +459,10 @@ protected List<RegionPlan> balanceTable(TableName
tableName,
// Allow turning this feature off if the locality cost is not going to
// be used in any computations.
RegionHDFSBlockLocationFinder finder = null;
- if ((this.localityCost != null) || (this.rackLocalityCost != null)) {
+ if (
+ (this.localityCost != null) || (this.rackLocalityCost != null)
+ || (this.prefetchCacheCost != null)
Review Comment:
But setting the finder is just important if we are interested in calculate
hdfs blocks locality, so why setting it for the prefetch function?
--
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]