Skip to content

Allow exec with read commands on readonly replica in cluster#7766

Merged
oranagra merged 6 commits intoredis:unstablefrom
eliblight:Issue#7683-MULTI/EXEC-on-READONLY-replica
Sep 9, 2020
Merged

Allow exec with read commands on readonly replica in cluster#7766
oranagra merged 6 commits intoredis:unstablefrom
eliblight:Issue#7683-MULTI/EXEC-on-READONLY-replica

Conversation

@eliblight
Copy link
Contributor

@eliblight eliblight commented Sep 9, 2020

Per #7683 adds the ability to do MULTI/EXEC read only operations on a READONLY replica.

Minor:

  • Added tests for the new behavior
  • Minor refactor that Adds Rn function that return the n-th Redis test instance

eliblight and others added 5 commits January 23, 2020 16:06
Pull from antirez/redis (i.e. update private fork)
Pull redis/redis : unstable
Add/fix the ability to preform a MULTI/EXEC transaction which consist of
only readonly operations (each indiviually allowed on a replica)
Tests MULTI/EXEC operation on a replica
@eliblight eliblight marked this pull request as draft September 9, 2020 05:45
@eliblight eliblight marked this pull request as ready for review September 9, 2020 05:46
oranagra
oranagra previously approved these changes Sep 9, 2020
Adds a new empty line at the end of the file

Co-authored-by: Oran Agra <[email protected]>
@oranagra oranagra changed the title Issue#7683 multi/exec on readonly replica Allow exec with read commands on readonly replica in cluster Sep 9, 2020
@oranagra oranagra merged commit b120366 into redis:unstable Sep 9, 2020
@eliblight eliblight deleted the Issue#7683-MULTI/EXEC-on-READONLY-replica branch September 9, 2020 06:37
oranagra added a commit that referenced this pull request Sep 10, 2020
There was a bug. Although cluster replicas would allow read commands,
they would not allow a MULTI-EXEC that's composed solely of read commands.
Adds tests for coverage.

Co-authored-by: Oran Agra <[email protected]>
Co-authored-by: Eran Liberty <[email protected]>
(cherry picked from commit b120366)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
)

There was a bug. Although cluster replicas would allow read commands,
they would not allow a MULTI-EXEC that's composed solely of read commands.
Adds tests for coverage.

Co-authored-by: Oran Agra <[email protected]>
Co-authored-by: Eran Liberty <[email protected]>
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
)

There was a bug. Although cluster replicas would allow read commands,
they would not allow a MULTI-EXEC that's composed solely of read commands.
Adds tests for coverage.

Co-authored-by: Oran Agra <[email protected]>
Co-authored-by: Eran Liberty <[email protected]>
(cherry picked from commit b120366)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants