jiajunwang opened a new issue #1358:
URL: https://github.com/apache/helix/issues/1358


   ### Describe the bug
   The rebalance state metric for each resource is the way Helix provides to 
identify if a resource is being rebalanced normally. We identify an issue that 
may lead this metric to report wrong information.
   In detail, even though the bestpossiblestate calculation fails, the state 
might remain to be NORMAL.
   
   ### To Reproduce
   1. Use DelayedRebalance since it may not throw an exception even the 
rebalance is not possible.
   2. Try to rebalance a resource with no available instances.
   3. Check the ResourceMonitor attribute RebalanceState, it would be showing 
BEST_POSSIBLE_CAL_FAILED and then be overwritten to NORMAL by the later 
pipeline stage.
   
   ### Expected behavior
   The BEST_POSSIBLE_CAL_FAILED state should remain in the ResourceMonitor 
until enough instances appear and the resource is normally rebalanced.
   
   ### Additional context
   Add any other context about the problem here.
   


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