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
CLUSTERGETKEYSINSLOT returns an array of keys stored in the contacted node which are mapped to the specified hash slot. But when the node is in MIGRATING state, if some keys have migrated and the CLUSTERGETKEYSINSLOT function is called again, it returns the same keys, including those that have been migrated.
Steps to reproduce the bug
Repro:
Create a cluster comprising of two nodes, N1 and N2.
Add some slots to N1
Add keys mapped to a slot X served by N1
Set the target node N2 in importing state to import slot X from node N1
Set the source node N1 in migrating state to migrate slot X to node N2
Call ClusterGetKeysInSlot for slot X on N1
Migrate an existing key, K1, mapped to slot X from N1 to N2
Call ClusterGetKeysInSlot for slot X on N1
K1, along with any other existing keys, will be included in the returned result.
Expected behavior
Following the migration of key K1 from the source node, when invoking ClusterGetKeysInSlot, the returned result should not include the migrated key K1.
Screenshots
Release version
No response
IDE
No response
OS version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
CLUSTERGETKEYSINSLOT returns an array of keys stored in the contacted node which are mapped to the specified hash slot. But when the node is in MIGRATING state, if some keys have migrated and the CLUSTERGETKEYSINSLOT function is called again, it returns the same keys, including those that have been migrated.
Steps to reproduce the bug
Repro:
Expected behavior
Following the migration of key K1 from the source node, when invoking ClusterGetKeysInSlot, the returned result should not include the migrated key K1.
Screenshots
Release version
No response
IDE
No response
OS version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: