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) #817

Merged
merged 3 commits into from
Nov 20, 2019

Conversation

sre-bot
Copy link

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

cherry-pick #813 to release-3.0


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

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

@IANTHEREAL
Copy link
Collaborator

/run-integration-tests tidb=release-3.0

Copy link
Contributor

@july2993 july2993 left a comment

Choose a reason for hiding this comment

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

LGTM

@IANTHEREAL
Copy link
Collaborator

/run-all-tests tidb=v3.0.5

@IANTHEREAL IANTHEREAL merged commit 4003e0c into pingcap:release-3.0 Nov 20, 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.

4 participants