-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
server: wait for auto commit queries before shutdown #55494
Conversation
004d40e
to
c444908
Compare
c444908
to
ae5bba8
Compare
ae5bba8
to
1836973
Compare
Signed-off-by: Yang Keao <[email protected]>
1836973
to
cde8fe4
Compare
/hold Testing now. It seems that it cannot fix the issue in my scenario. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #55494 +/- ##
================================================
+ Coverage 73.0142% 74.9624% +1.9481%
================================================
Files 1576 1577 +1
Lines 440774 441528 +754
================================================
+ Hits 321828 330980 +9152
+ Misses 99264 90373 -8891
- Partials 19682 20175 +493
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/unhold No problem. I made some mistakes while testing. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, xhebox The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #55464
Problem Summary:
Previously, TiDB will not wait for auto-commit queries. These queries are directly killed. It'd be better to wait for them to finish.
What changed and how does it work?
Also checking the connection status when filtering the connection to wait.
Check List
Tests
Run a workload with heavy auto-commit traffic, and you'll see the connections are closed with little leaked lock.
Release note