vert-x3 / vertx-redis-client

Redis client for Vert.x
http://vertx.io
Apache License 2.0
128 stars 116 forks source link

Cluster batch command same slot calculation is wrong #447

Closed pendula95 closed 3 months ago

pendula95 commented 3 months ago

When calculating slot for keys of batch command current implementations compare raw value of slot. This is wrong, it should calculate if command can be executed via endpoint that serves that slot. Example node 127.0.0.1:7000 will serve hash slot 0 - 5460. All commands that are in this hash slot should be executed without an issue via batch.

I have already written a fix and test for this, this issue is just for tracking.