Skip to content

Fix RemoveTablet during TabletExternallyReparented causing connection issues#112

Merged
danieljoos merged 1 commit intorelease-17.0-githubfrom
arthur/add-more-logs
Jul 18, 2024
Merged

Fix RemoveTablet during TabletExternallyReparented causing connection issues#112
danieljoos merged 1 commit intorelease-17.0-githubfrom
arthur/add-more-logs

Conversation

@arthurschreiber
Copy link

@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
Author

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

@danieljoos danieljoos force-pushed the arthur/add-more-logs branch from 31c572a to f0b2004 Compare July 12, 2024 12:50
@danieljoos danieljoos changed the title Add more logging to vtgate / healthcheck Fix RemoveTablet during TabletExternallyReparented causing connection issues Jul 12, 2024
@danieljoos danieljoos force-pushed the arthur/add-more-logs branch from f0b2004 to 37dbdf2 Compare July 12, 2024 12:58
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 <arthurschreiber@github.com>

Co-authored-by: Daniel Joos <danieljoos@github.com>
@danieljoos danieljoos force-pushed the arthur/add-more-logs branch from 37dbdf2 to 9894a65 Compare July 15, 2024 07:31
@danieljoos
Copy link

Deployed to all production vtgates. Merging this PR.

@danieljoos danieljoos merged commit 2960a36 into release-17.0-github Jul 18, 2024
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