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
Update slotmap when slot is not served by any node #192
Conversation
The sync-API will update the slotmap before attempting to send a command when the slot is not served by any cluster node. The async-API will initate the slotmap update in parallell so that the next command might have an updated slotmap.
Its former name `cluster_update_route()` can be removed by the define HIRCLUSTER_NO_OLD_NAMES, which would break the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Only some questions about the other (slightly unrelated) fixes.
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This reverts commit 4d2299a.
I reverted the callback handling for AUTH commands, to be added via separate PR. Also removed the use of the eventloop in the testcases that didn't need any events for its testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Let's take the other things in other PRs.
The sync-API will now update the slotmap before attempting to send a command when the slot is not served.
The async-API will initate the slotmap update in parallell so that the next command might have an updated slotmap.
This also fix an additional issue by using the correct function name for
redisClusterUpdateSlotmap()
.The former name
cluster_update_route()
is not defined whenHIRCLUSTER_NO_OLD_NAMES
is defined, which would break the build.Fixes #191