-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use PRS in Vtorc for electing new primary #9409
Use PRS in Vtorc for electing new primary #9409
Conversation
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…tion is needed to not spawn incorrect failovers Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…thout specifying a new primary Signed-off-by: Manan Gupta <manan@planetscale.com>
…replication status Signed-off-by: Manan Gupta <manan@planetscale.com>
…derlying contains interface doesn't Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
The implementation of the |
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Description
This PR changes the implementation of
electNewPrimary
to usePlannedReparentShard
instead of having its own codepath. It also changes some checks inPlannedReparentShard
to allow calling it with no new primary specified even for initialisation. No new end to end test has been added for this since there is already extensive coverage in the vtorc's tests which rely onelectNewPrimary
(PlannedReparentShard
) to initialise the cluster.Related Issue(s)
Checklist
Deployment Notes