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

We should always time out health connections to a vttablet. #4674

Merged

Conversation

mpawliszyn
Copy link
Collaborator

Otherwise when a connection goes dead and the vttablet procees restarts
the vtgate will never try to reestablish the connection.

Signed-off-by: Michael Pawliszyn [email protected]

@mpawliszyn mpawliszyn requested a review from sougou as a code owner February 26, 2019 20:54
@mpawliszyn mpawliszyn force-pushed the mikepaw.not-serving-infinite-loop branch 2 times, most recently from 2c20687 to 281c63c Compare February 26, 2019 22:04
Otherwise when a connection goes dead and the vttablet procees restarts
the vtgate will never try to reestablish the connection.

Signed-off-by: Michael Pawliszyn <[email protected]>
@mpawliszyn mpawliszyn force-pushed the mikepaw.not-serving-infinite-loop branch from 281c63c to ec6a753 Compare February 26, 2019 23:52
@mpawliszyn
Copy link
Collaborator Author

There is an exponential backoff when trying to reconnect to the tablet so I'm pretty sure we should time out in all cases. Even on non-serving. Otherwise dead TCP connections where the vtgate is waiting for a response will never get challenged.

Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

I can't think of why this continue was there. Possibly, if a tablet gets taken out for backup, maybe we want to avoid spamming it until it comes back up online?

In any case, it seems safer to retry the connection on timeout.

@sougou sougou merged commit 7afe66c into vitessio:master Feb 28, 2019
@mpawliszyn mpawliszyn deleted the mikepaw.not-serving-infinite-loop branch July 16, 2019 14:28
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