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
CrossSlotPipeliningError
validation seems incorrect?
#1019
Comments
One additional piece of info: this was using a cluster with one shard and 5 replicas. |
I had a brief look at this for the team, and I'm a bit suspicious of this code path: Line 290 in baf5706
This is going to call redis-rb/lib/redis/cluster/slot.rb Lines 25 to 30 in baf5706
A random replica will be chosen, which may result in different |
It is a bug. It seems that the cross-slot validation should be skipped when commands in pipeline are sent to replicas. |
Actually, forget about that. The cross-slot validation in pipelining should be geared toward primary nodes. |
From my reading of https://redis.io/topics/cluster-spec#keys-hash-tags it seems that the magic squiggly brackets to force a specific value for hashing should be acceptable anywhere in the key. However the raise of
CrossSlotPipeliningError
here:redis-rb/lib/redis/cluster.rb
Line 82 in 6542934
Seems to only accept the magic squigglies as a prefix:
This is v4.3.1
The text was updated successfully, but these errors were encountered: