Ericsson / ered

An Erlang client library for Valkey/Redis Cluster
MIT License
11 stars 6 forks source link

Ignore empty slotmap #33

Closed zuiderkwast closed 10 months ago

zuiderkwast commented 10 months ago

An empty response from CLUSTER SLOTS can mean that an admin has done CLUSTER RESET on a node, for example after a failover. If an empty slotmap i accepted, ered forgets all nodes and cannot recover again. Ignoring these responses instead results in repeated tries to update the slotmap until a non-empty slotmap is returned from one of the nodes.

Additional change: Include node address in info msg about updated slotmap.