-
Notifications
You must be signed in to change notification settings - Fork 1k
Undefined results when using ReadFrom with SCAN family commands #3287
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
Comments
Hey @Dishant18 , please allow for the team to catch up with some work after the holidays and we will get back to you. |
@mp911de not contributing anymore? We are writing hacky code at our end to get around this behaviour. |
@mp911de is always welcome to contribute, but I see he is quite busy with the Spring backlog. If you and your team have a suggestion how to fix this you are more than welcome to submit a PR. In any case, even if you do not come up with a PR, the team would get to this issue ASAP and let you know how we think we should proceed. |
@tishun gentle nudge on this one : ) We are only waiting for you to acknowledge that this is a bug, and we'll submit a PR for this soon. TIA |
@tishun gentle nudge again : ) |
Hey, apologies for that, I plan to spend some time for this this Friday. |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Current Behavior
We have observed that when using the ReadFrom setting with
SCAN
family of commands, the continuation requests (with cursor) is not guaranteed to go to the same node as the first request. Due to this behaviour, the results ofSCAN
family requests are undefined.We have a master-replica Redis setup with sentinel-based discovery.
Input Code
Input Code
Expected behavior/code
SCAN family continuation requests need to be sticky to a Redis Node. When it is used in conjunction with ReadFrom, on every continuation request - a new node can be chosen - which seems like a bug.
Environment
Additional Context
The same support is present for
ClusterScanCursor
. It maintains a nodeId and routes the next command to the same node. Any reason for not adding this in Master-replica setup?The text was updated successfully, but these errors were encountered: