-
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
Feature Request: allow current/before PRIMARY
to be specified in PRS
#16430
Comments
Your understanding of PRS is already idempotent as long as you provide the |
VTOrc only runs |
There are multiple ways of solving this without adding another flag to PRS
|
Feature Description
This issue proposes that the current/before shard
PRIMARY
can be specified inPlannedReparentShard
(andEmergencyReparentShard
🤔?) RPC requests in order to support a more idempotent(?) operation, where if the provided, "current"PRIMARY
is no longer correct, the operation fails or no-opsThis could be implemented by adding an optional request-field
CurrentPrimary *topodatapb.TabletAlias
containing the alias of who you think thePRIMARY
is "now". InElectNewPrimary
the current primary can be compared to this alias and a mismatch is handledThe existing
AvoidPrimary
field sounded like it would do this from the description, but my understanding is it's only used to disqualify a tablet from being the promotion candidate. Please correct me if wrong!Your feedback is much appreciated!
Use Case(s)
This support can prevent situations when an issue is fixed by VTOrc while external automation is also issuing
PlannedReparentShard
operationsIt would be great if the external automation could say "PRS only if alias X is still the
PRIMARY
" and if something changed the world in the process, this operation does no go throughThe text was updated successfully, but these errors were encountered: