AutoRebalanceStrategy generate empty IdealState
Closed this issue · 0 comments
MarkGaox commented
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.
- Create a cluster of two nodes
- Create resource with ANY_LINVEINSTANCE replica count and use the LeaderStandby Model
- EV: N1 -> Leader, N2 -> Standby, IS: N1 -> Leader, N2 -> Standby
- Disable node 1.
- 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.