You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem occurs because nodes that were recognized as masters at the beginning of redis-cli execution are converted to replicas as their slots become 0.
When the node that used to be the master changes to a replica, and executes the CLUSTER SETSLOT command on that node, the following error occurs.
ERR Please use SETSLOT only with masters.
However, during the process of becoming a replica and synchronizing with the new master, a LOADING error will occur for the CLUSTER SETSLOT command.
LOADING Redis is loading the dataset in memory
Of course, there were patches related to this in the past.
Describe the bug
When I try to move all slots on two or more nodes to other nodes using
redis-cli --cluster rebalance
, rebalancing can be stopped along the way.To reproduce
When I have a Redis cluster of 12 master nodes, and want to scale it down to 6 masters, I would be able to use rebalance command like this.
And it can stop with the following errors:
Expected behavior
Loading errors can also be ignored.
Additional information
This problem occurs because nodes that were recognized as masters at the beginning of redis-cli execution are converted to replicas as their slots become 0.
When the node that used to be the master changes to a replica, and executes the
CLUSTER SETSLOT
command on that node, the following error occurs.However, during the process of becoming a replica and synchronizing with the new master, a
LOADING error
will occur for theCLUSTER SETSLOT
command.Of course, there were patches related to this in the past.
But what was previously patched was only for source, and the problem I ran into was that of notifications to others.
redis/src/redis-cli.c
Line 4479 in 44859a4
I think the error can be ignored for the following reasons.
Another solution is to omit the notification to nodes that do not have any slots. However, I am not sure that there is no side effect.
The text was updated successfully, but these errors were encountered: