redis / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

Home Page:http://redis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] Redis primary node becomes a replica automatically after all slots have been migrated

tharunsikhinam opened this issue · comments

Hi,

I am doing a live resharding on my redis cluster. I have 5 shards and 0 replicas. I am resharding from 5 nodes to 3.
Once I finish moving all slots from node 4 to node 2 say. Node 4 automatically becomes the replica of node 2 after the last slot has been migrated from node 4. Is this expected? Is there a way to stop this?

I am expecting after the all slots have been migrated, the node without slots is an empty primary.

I am using redis version 7.0.5 and this behavior appears to be consistent.

Please let me know if more details needs to be shared. thank you

looks like this issue was raised before, closing the ticket.
#3083
#3043