-
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
ctrl-c can't kill tidb-server #7545
Comments
@crazycs520 |
I also meet this error sometimes. |
I guess it is caused by the running auto-analyze task. |
@coocood yes, It is reproducible. |
I think this issue duplicates with #7221 |
@birdstorm I close that issue. |
@shenli @tiancaiamao
|
@crazycs520 If you already fixed this issue, please close this one ;) |
I think we should re-design the resource pool, when resource is take out from the pool, its ownership should be moved from the pool. |
@tiancaiamao Agree. Please provide a proposal doc. |
Session pool refactor here #8456 TiDB version 487bb50 Now I find another problem:
TiDB can't exit because ddl worker is blocked waiting for add index worker:
and index worker blocked here, waiting for <-taskCh:
The taskCh should have been writen by function The stack looks like this:
It turns out that when TiKV is killed, TiDB read snapshot backoff for a very long time, repeating this action:
|
The problem still exists. :( |
Could you provide the goroutine profile files so we can debug it? @SunRunAway |
B.T.W, I mean ctrl-c in the terminal, not in the MySQL client here. |
See #10260 for another case |
close this one |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
What did you expect to see?
tidb-server exit.
What did you see instead?
tidb-server do not exit.
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?Release Version: v2.1.0-rc.1-6-g1d0d0a666
Git Commit Hash: 1d0d0a6
Git Branch: master
UTC Build Time: 2018-08-29 03:06:25
GoVersion: go version go1.10.3 darwin/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: