Skip to content
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

moving pre 2.6.45 write commands that were not previously considered primary-only out of primary-only #2183

Merged
merged 3 commits into from
Jul 18, 2022

Conversation

slorello89
Copy link
Collaborator

Fixes #2182

@NickCraver for background in #2101, we changed some of the logic around primary-only to require all commands to be explicitly stated as primary-only or not. During this effort, I went through the command list and checked to see which were considered write commands (which would be rejected by a replica) so that there would be consistency in behavior when stumbling on commands that would ordinarily be rejected by a replica. This made a slightly more restrictive list of commands.

Enter #2182, where this inconsistency had evidently become load-bearing. The user has evidently designated their replicas as writeable (I think I was subconsciously aware of this capability but have never actually seen anyone use it). As it turns out By resolving this inconsistency in #2101 and the follow-on issue when I introduced SORT_RO in #2111 I apparently introduced a break.

This PR reverts all the pre-2.6.45 commands' primary vs replica disposition back to their previous state which will remove the break. Any command that was introduced in 2.6.45 is correctly dispositioned.

@slorello89
Copy link
Collaborator Author

@NickCraver adding do-not-merge label See my comment here

@NickCraver
Copy link
Collaborator

@slorello89 recommend continuing with a revert here to a known good. If we want to get smarter about it later we can, but let's switch back to a state that caused fewer issues overall :)

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

@NickCraver NickCraver merged commit 10988f0 into main Jul 18, 2022
@NickCraver NickCraver deleted the resetting-primary-only branch July 18, 2022 13:36
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.

CRITICAL: SORT is now rejected in all replicas
2 participants