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

Fix hashslot calculation for XACK, XCLAIM and XPENDING #2085

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

nielsderdaele
Copy link
Contributor

The current implementation of XACK, XCLAIM and XPENDING uses a ComandValuesMessage. Due to this the GetHashSlot() method always returns -1.

Using these commands in a redis cluster environment will result in MOVED responses as the commands are send to incorrect endpoints.

…ands => fixes incorrect HashSlot calculation.
@nielsderdaele
Copy link
Contributor Author

The commands XREADGROUP, XREAD, XGROUP and XINFO have the same problem. I have created issue #2086 for these commands as they couldn't be fixed by using an already existing MessageCommand.

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great - thanks for this and the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants