Hello,

I am using redis 6.0.4 in docker in cluster mode, I setup my client to read from the slaves and I noticed during tests that when I reshard some keys to another master, my slaves sometimes give me "nil" results for keys they previously held and have been migrated, when the correct behavior is to give me a "MOVED" to the new master that has that key.

That only lasts while the resharding is in progress, after it returns to normal.

Is that a known thing and it isn't safe to read from slaves during resharding, or is it unintended?

Comment From: trevor211

From the code you can see, migrating and importing status imformation are kept only in masters, not replicas. Master and replicas on the same shard would be consistent eventualy after migration is done of that slot.

Comment From: itamarhaber

Thanks @trevor211 for the well-thought and researched answer. @SPascareli has your question been answered? If so, please close this issue.