Skip to content

[NEW] Expect to use transaction with all read-only commands on replica node in cluster mode if all keys can be found on replica #7683

@WeiSongAmazon

Description

@WeiSongAmazon

The problem/use-case that the feature addresses

In Redis Cluster mode, even if 'readonly' command has already been called on replica, the transaction will not work even if all keys can be found on the replica node.

Description of the feature

As Redis user, I would expect to use transaction with all read-only commands on replica node in cluster mode if all keys can be found on replica.

Additional information
I did the following tests on my replica in cluster mode with redis-cli

Without transaction:

readonly
OK
hget hashtest a
"1"
hget hashtest b
"2"

With transaction:

readonly
multi
OK
hget hashtest a
QUEUED
hget hashtest b
QUEUED
exec
(error) MOVED XXXXXXXXX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions