-
Notifications
You must be signed in to change notification settings - Fork 412
Remove unnecessary wait for MPP tunnel destruction before shutdown #10313
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
Conversation
This reverts commit bec1390.
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
windtalker
left a comment
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
|
/hold |
|
/retest |
cbddc48 to
405f04a
Compare
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
Signed-off-by: gengliqi <gengliqiii@gmail.com>
JaySon-Huang
left a comment
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/unhold |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: ref #10266
Problem Summary:
What is changed and how it works?
After #10299, TiFlash will wait for all MPPTasks to finish before shutdown.
Whether all MPP tasks have finished is determined by checking if
monitored_tasksis empty. InMPPTask,MPPTaskMonitorHelperis the last member to be destructed, and only when it is destructed willremoveMonitoredTaskbe called to remove the task id frommonitored_tasks.MPPTunnels are stored inMPPTunnelSet, and althoughMPPTunnelSetis held by a shared_ptr, there are actually only two references: one directly inMPPTask, and the other inside thestd::unique_ptr<DAGContext>also in MPPTask. Therefore, destroying theMPPTaskwill also destroy theMPPTunnel.Check List
Tests
Side effects
Documentation
Release note