desaikomal commented on code in PR #2650:
URL: https://github.com/apache/helix/pull/2650#discussion_r1353451729


##########
helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java:
##########
@@ -100,7 +100,7 @@ public OptimalAssignment calculate(ClusterModel 
clusterModel) throws HelixRebala
           getNodeWithHighestPoints(replica, nodes, clusterModel.getContext(), 
busyInstances,
               optimalAssignment);
       // stop immediately if any replica cannot find best assignable node
-      if (maybeBestNode.isEmpty() || optimalAssignment.hasAnyFailure()) {
+      if (!maybeBestNode.isPresent() || optimalAssignment.hasAnyFailure()) {

Review Comment:
   thanks.. i thought the data structure is the same, but here method is the 
issue. thanks.



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