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

Fix RemoveTablet during TabletExternallyReparented causing connection issues #112

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

arthurschreiber
Copy link
Member

@arthurschreiber arthurschreiber commented Jul 9, 2024

Description

This pull request backports the changes proposed in vitessio#16371.

It fixes a problem in the health-check logic where an external reparenting can cause two primary tablets being marked as healthy.

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

@arthurschreiber
Copy link
Member Author

Some of the logging in 162f999 or 16cf7b5 seems to have broken the unit test build? I'm really unsure why 🤔

@danieljoos danieljoos changed the title Add more logging to vtgate / healthcheck Fix RemoveTablet during TabletExternallyReparented causing connection issues Jul 12, 2024
This ensures that we can never end up in a situation where there is more
than one healthy primary tablet for a given shard.

Signed-off-by: Arthur Schreiber <[email protected]>

Co-authored-by: Daniel Joos <[email protected]>
@danieljoos
Copy link

Deployed to all production vtgates. Merging this PR.

@danieljoos danieljoos merged commit 2960a36 into release-17.0-github Jul 18, 2024
197 of 198 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants