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

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

Merged

Conversation

ajm188
Copy link
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 added this to In progress in Vtctld Service via automation May 8, 2021
@systay systay added Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature) labels May 9, 2021
Copy link
Member

@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
Vtctld Service automation moved this from In progress to Done 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
Development

Successfully merging this pull request may close these issues.

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