Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
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.
redis / go-redis Public
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
Wrong cmd slot of xread in cluster #1501
chengjing1181122598 opened this issue Sep 21, 2024 · 3 comments
Wrong cmd slot of xread in cluster #1501
chengjing1181122598 opened this issue Sep 21, 2024 · 3 comments
Comments
chengjing1181122598 commented Sep 21, 2024
Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.
Expected Behavior
Xread should not occur MOVED error in cluster.
Current Behavior
Xread always occur MOVED error in cluster.
Possible Solution
Steps to Reproduce
- github.com/go-redis/redis/v7 v7.4.0
- In cluster mode
- XRead(&redis.XReadArgs, Count: 100, Block: 0>)
- Wrong cmd args position used to slot, should be “test_stream_pub_sub” instead of “count”.
- Incidentally please check other cmd about stream.
Context (Environment)
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered:
chengjing1181122598 closed this as completed Sep 22, 2024
chengjing1181122598 reopened this Sep 22, 2024
chengjing1181122598 commented Sep 22, 2024 •
command info xread 1) 1) "xread" 2) (integer) -4 3) 1) readonly 2) movablekeys 4) (integer) 1 5) (integer) 1 6) (integer) 1 7) 1) @read 2) @stream 3) @slow 4) @blocking
Here 4) (integer) 1 is the position ( 1 ) of the key argument. So it uses args[1] which is count . So everything works as expected (but incorrectly).
There is movablekeys in command flags.It is the note from https://redis.io/commands/command.
movablekeys - keys have no pre-determined position. You must discover keys yourself.
So the client should do more to discover keys, right?
Smarties Indonesia – JuryTanggal:cmd368
Comprised of over 800-member companies globally and 15 regional offices, the MMA is the only marketing trade association that brings together the full ecosystem of marketers, martech and media companies working collaboratively to architect the future of marketing, while relentlessly delivering growth today. Led by CMOs, the MMA helps marketers lead the imperative for marketing change – in ways that enable future breakthroughs while optimizing current activities. The MMA is committed to science and questioning and believes that creating marketing impact is steeped in constructively challenging the status quo encouraging business leaders to aggressively adopt proven, peer-driven and scientific best practices, without compromise. The MMA invests millions of dollars in rigorous research to enable marketers with unassailable truth and actionable tools. By enlightening, empowering and enabling marketers, the MMA shapes future success, while also propelling business growth.
Copyright © 2024 MMA. All Rights Reserved.
+ 1 646 257 4515 | [email protected]
MMA SMS Leader: