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

Bug Report: ERS fails if PromoteReplica runs a write #15935

Closed
GuptaManan100 opened this issue May 14, 2024 · 0 comments · Fixed by #15934
Closed

Bug Report: ERS fails if PromoteReplica runs a write #15935

GuptaManan100 opened this issue May 14, 2024 · 0 comments · Fixed by #15934

Comments

@GuptaManan100
Copy link
Member

Overview of the Issue

If there is a change in the metadata tables of Vitess that need to be applied when a new primary is promoted in ERS, then a DML query is run. But this gets blocked because none of the replicas are connected to the new primary.

Since the new primary can be a newer version of vttablet that has some updated version of the metadata tables, then the DML query being run in unavoidable. This is the reason that PRS runs PromoteReplica and SetReplicationSource in parallel.

Reproduction Steps

Change any of the metadata tables before running an ERS.

Binary Version

main

Operating System and Environment details

-

Log Fragments

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant