Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster returns outdated CLUSTER SLOTS #4765

Closed
andydunstall opened this issue Mar 14, 2025 · 1 comment
Closed

Cluster returns outdated CLUSTER SLOTS #4765

andydunstall opened this issue Mar 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@andydunstall
Copy link
Contributor

When Dragonfly finishes a migration, the source and target nodes are updated with the updated cluster config

This means the source can send a MOVED redirect to the target node for the migrated slots

However CLUSTER SLOTS still returns the old configuration, meaning if a client receives a MOVED redirect from shard A to shard B, then looks up CLUSTER SLOTS, CLUSTER SLOTS returns shard A still owns the slot

(We discussed in more depth in chat so won't copy here...)

@andydunstall andydunstall added the bug Something isn't working label Mar 14, 2025
@adiholden
Copy link
Collaborator

I am closing this issue, as discussed on vc. The change should be in cluster manager to pool more frequently the migration status and update the nodes with the new config accordingly.
Untill the update config will be sent to nodes the server will return with the relevant moved error which the client should follow up on to redirect the request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants