-
Notifications
You must be signed in to change notification settings - Fork 119
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
Command.XREADGROUP error MOVED #440
Comments
All commands that are not read-only are routed to master nodes already, so that is not an issue. I noticed a while ago that we transparently handle |
I think there is a problem with the "xreadGroup" command because it is recognized as "readOnly" and therefore is also sent to the replication nodes. |
Command XREADGROUP = new CommandImpl("xreadgroup", -7, false, false, false, new KeyLocator(true, new BeginSearchKeyword("STREAMS", 4), new FindKeysRange(-1, 1, 2))); The first param is Boolean readOnly |
You might want to debug |
I did it: 15:58:46.761 [vert.x-eventloop-thread-2] INFO i.m.s.v.tst.pri.TstDeployerVerticle - XREADGROUP GROUP mgg.signal.workers mgg.signal.worker:1 COUNT 1 BLOCK 1000 STREAMS stream:message > |
After changing the "ro" parameter of the KeyLocator class, I saw that things are working fine: Command XREADGROUP = new CommandImpl("xreadgroup", -7, false, false, false, new KeyLocator(false, new BeginSearchKeyword("STREAMS", 4), new FindKeysRange(-1, 1, 2))); 16:04:49.681 [vert.x-eventloop-thread-2] INFO i.m.s.v.tst.pri.TstDeployerVerticle - XREADGROUP GROUP mgg.signal.workers mgg.signal.worker:1 COUNT 1 BLOCK 1000 STREAMS stream:message > now in the log is printed correctly: "readOnly=false" |
Funny. The command descriptors are automatically generated from Redis |
Hi @Ladicek, do you have news? Thanks. |
I don't have any news, no. |
I am experiencing some issues in Redis Cluster mode, particularly with the MOVED error.
It is still unclear to me how to transparently handle this when the cluster is unbalanced.
I think there is a problem with the "xreadgroup" command, though, because unlike the "xread" command, which is a read command, "xreadgroup" is a write command.
In RedisReplicas.SHARE or RedisReplicas.ALWAYS mode I run into the MOVED error.
I suppose it is to treat the command as "master only":
addMasterOnlyCommand(XREADGROUP);
vertx-redis-client -> 4.5.6
The text was updated successfully, but these errors were encountered: