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

MPP tasks may leak threads forever #4238

Closed
bestwoody opened this issue Mar 12, 2022 · 0 comments · Fixed by #4241
Closed

MPP tasks may leak threads forever #4238

bestwoody opened this issue Mar 12, 2022 · 0 comments · Fixed by #4241

Comments

@bestwoody
Copy link
Contributor

bestwoody commented Mar 12, 2022

Bug Report

MPP tasks may leak threads forever

1. Minimal reproduce step (Required)

1.Do a lot of query between multiple TIFlash nodes.
2. Kill a TiFlash process at the same time.
3.use pstack to find that MppTunnel and its consumer will not be closed as expected when MppTunnel received cancel request before consumer connects it. You can also print some log to find that.

2. What did you expect to see? (Required)

MppTunnel and its consumer will be closed as expected when MppTunnel received cancel request before consumer connects it.

3. What did you see instead (Required)

MppTunnel and its consumer did not be closed as expected when MppTunnel received cancel request before consumer connects it.

4. What is your TiFlash version? (Required)

6.0.0 alpha

@bestwoody bestwoody added the type/bug The issue is confirmed as a bug. label Mar 12, 2022
@bestwoody bestwoody changed the title MppTunnel and its consumer will not be closed as expected when MppTunnel received cancel request before consumer connects it. MppTunnel and its consumer will not be closed as expected ocasionally when cancel Mar 14, 2022
@bestwoody bestwoody changed the title MppTunnel and its consumer will not be closed as expected ocasionally when cancel MPP tasks may leak threads forever Mar 14, 2022
JaySon-Huang pushed a commit to JaySon-Huang/tiflash that referenced this issue Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants