apache/helix

AutoRebalanceStrategy generate empty IdealState

Closed this issue · 0 comments

Describe the bug

A clear and concise description of what the bug is.
AutoRebalanceStrategy generate empty IdealState and preference list after nodes are disabled.

To Reproduce

Steps to reproduce the behavior.

  1. Create a cluster of two nodes
  2. Create resource with ANY_LINVEINSTANCE replica count and use the LeaderStandby Model
  3. EV: N1 -> Leader, N2 -> Standby, IS: N1 -> Leader, N2 -> Standby
  4. Disable node 1.
  5. Since the Strategy generates a empty IS, the original IS is not changed.

Expected behavior

A clear and concise description of what you expected to happen.
After node 1 is disabled, we should see the leader replica switched to the node 2.

Additional context

Add any other context about the problem here.