-
Notifications
You must be signed in to change notification settings - Fork 409
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
Fix a bug that MPP tasks may leak threads forever #4241
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/rebuild |
/run-all-tests |
1 similar comment
/run-all-tests |
/rebuild |
dbms/src/Flash/Mpp/MPPTunnel.cpp
Outdated
@@ -218,6 +218,8 @@ void MPPTunnelBase<Writer>::connect(Writer * writer_) | |||
std::unique_lock lk(mu); | |||
if (connected) | |||
throw Exception("has connected"); | |||
if (finished) | |||
throw Exception("has finished"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the message is too sample, the same as L220.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In response to a cherrypick label: new pull request created: #4642. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4643. |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4644. |
In response to a cherrypick label: new pull request created: #4645. |
In response to a cherrypick label: new pull request could not be created: failed to create pull request against pingcap/tiflash#release-5.3 from head ti-chi-bot:cherry-pick-4241-to-release-5.3: the GitHub API request returns a 403 error: {"message":"You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later.","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits"} |
Signed-off-by: ti-chi-bot <[email protected]>
This reverts commit d19071b.
This reverts commit b052110.
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4647. |
close #4238 Co-authored-by: bestwoody <[email protected]>
* This is an automated cherry-pick of #4241 Signed-off-by: ti-chi-bot <[email protected]> * Update MPPTunnel.cpp * format Co-authored-by: bestwoody <[email protected]> Co-authored-by: ruoxi <[email protected]> Co-authored-by: bestwoody <[email protected]>
* This is an automated cherry-pick of #4241 Signed-off-by: ti-chi-bot <[email protected]> * Update MPPTunnel.cpp * pass code static check Co-authored-by: bestwoody <[email protected]> Co-authored-by: bestwoody <[email protected]>
What problem does this PR solve?
Issue Number: close #4238
Problem Summary:
What is changed and how it works?
MppTunnel and its consumer will be closed as expected when MppTunnel received cancel request before consumer connects it.
So need throw a exception like
connected
to let consumer finish when mpptunnel is finished.Check List
Tests
Side effects
Documentation
Release note