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

add timeout for gs.GracefulStop (#813) #824

Merged
merged 3 commits into from
Nov 22, 2019

Conversation

sre-bot
Copy link

@sre-bot sre-bot commented Nov 22, 2019

cherry-pick #813 to release-3.1


What problem does this PR solve?

sometime pump would block at gs.GracefulStop when it exits, we still don't know the specific reason, but we don't need to wait for GRPC service exited, it's safe.

What is changed and how it works?

add a timeout mechanism to give up waiting for the goroutine to exit

Check List

Tests

  • Unit test

@IANTHEREAL
Copy link
Collaborator

/run-all-tests

@IANTHEREAL IANTHEREAL merged commit d14bbe5 into pingcap:release-3.1 Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants