Feature Request: allow current/before PRIMARY
to be specified in PRS
#16430
Labels
Component: vtctl
Component: VTorc
Vitess Orchestrator integration
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
Type: Feature Request
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: