csudharsanan commented on code in PR #2738:
URL: https://github.com/apache/helix/pull/2738#discussion_r1466719374


##########
helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/constraints/MaxCapacityUsageInstanceConstraint.java:
##########
@@ -37,7 +37,7 @@ protected double getAssignmentScore(AssignableNode node, 
AssignableReplica repli
       ClusterContext clusterContext) {
     float estimatedMaxUtilization = 
clusterContext.getEstimatedMaxUtilization();
     float projectedHighestUtilization =
-        node.getGeneralProjectedHighestUtilization(replica.getCapacity());
+        node.getGeneralProjectedHighestUtilization(replica.getCapacity(), 
clusterContext.getPreferredScoringKey());

Review Comment:
   nope, there isn't always a preferred scoring key defined. 
getPreferredScoringKey() would return null by default.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to