Skip to content

[vtctldserver] Add guard against self-reparent, plus misc updates#8084

Merged
deepthi merged 1 commit intovitessio:masterfrom
tinyspeck:am_reparent_tablet_prevent_self_reparent
May 11, 2021
Merged

[vtctldserver] Add guard against self-reparent, plus misc updates#8084
deepthi merged 1 commit intovitessio:masterfrom
tinyspeck:am_reparent_tablet_prevent_self_reparent

Conversation

@ajm188
Copy link
Copy Markdown
Contributor

@ajm188 ajm188 commented May 8, 2021

Description

"misc updates" such as:

  • s/master/primary in error messages in ReparentTablet.
  • Reimplement wrangler's ReparentTablet to use grpcvtctldserver's
    implementation under the hood.
  • Add a test case for the self-reparent error case.

Signed-off-by: Andrew Mason amason@slack-corp.com

Related Issue(s)

Fixes #8077

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required -- N/A

Deployment Notes

"misc updates" such as:
* s/master/primary in error messages in `ReparentTablet`.
* Reimplement wrangler's `ReparentTablet` to use grpcvtctldserver's
  implementation under the hood.
* Add a test case for the self-reparent error case.

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 requested a review from deepthi May 8, 2021 00:25
@ajm188 ajm188 requested review from doeg and rohit-nayak-ps as code owners May 8, 2021 00:25
@systay systay added Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature) labels May 9, 2021
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

I see what you did 😄
LGTM

@deepthi deepthi merged commit c85a5c2 into vitessio:master May 11, 2021
@ajm188 ajm188 deleted the am_reparent_tablet_prevent_self_reparent branch May 29, 2021 10:25
ajm188 pushed a commit to tinyspeck/vitess that referenced this pull request Jul 23, 2021
…event_self_reparent

[vtctldserver] Add guard against self-reparent, plus misc updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReparentTablet allows to reparent the primary tablet, which will break the keyspace.

3 participants