jiajunwang commented on a change in pull request #1326:
URL: https://github.com/apache/helix/pull/1326#discussion_r483221807



##########
File path: 
helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/RebalanceScheduler.java
##########
@@ -80,6 +80,7 @@ public void scheduleRebalance(HelixManager manager, String 
resource, long startT
     long delay = startTime - System.currentTimeMillis();
     if (delay < 0) {
       LOG.debug(String.format("Delay time is %s, will not be scheduled", 
delay));
+      return;

Review comment:
       I'm not convinced this should not be scheduled. I believe the expected 
behavior is triggering the rebalance immediately. In this case, we shall fix 
the log not the logic.
   
   Overall, if the caller wants to schedule a rebalance, then it should be 
done. It is the caller responsibility to decide whether it is necessary. The 
scheduler should ensure it happens. Otherwise, we may miss the event by not 
doing anything. That will be a real bug.




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

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