-
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
executor: support global kill #17649
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
1a2eba1
to
e6fdfec
Compare
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
||
1. Extend connection ids from 32 to 64 bits would break some clients. Main current clients need to be checked for compatibility. | ||
|
||
2. Some clients would probably send `KILL` command with 32 bits connection ids. We should deal with this circumstance. (Ref. [1](https://github.com/pingcap/tidb/issues/8854#issuecomment-637217000) [2](https://github.com/pingcap/tidb/issues/8854#issuecomment-637237183)) |
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.
I suggest to leave some space discuss about mysql-client Ctrl+C compatibility. We don't need to give solutions in this RFC and we will resolve it later by introducing another RFC specifically for further introducing a 32 bit global connection id for small clusters.
e6fdfec
to
d69842e
Compare
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
1 similar comment
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
c950e77
to
a121b50
Compare
design doc
try compatibility by hacking a 64 bits connID.
4c4600b
to
a689113
Compare
Please resolve conflicts, thanks! |
e893ab4
/run-all-tests |
Conflicts resolved.
|
/merge |
/merge |
/run-all-tests |
@pingyu merge failed. |
/merge |
/run-all-tests |
@pingyu merge failed. |
What problem does this PR solve?
Issue Number: close #8854
Problem Summary:
Support CTRL-C or KILL to kill a connection/query.
What is changed and how it works?
Compose a global unique connection id by a unique server id and local unique connection id. See design doc for detail.
Related changes
Check List
Tests
[client on TiDB id:2002]
[client on TiDB id:2001]
Release note
KILL <connectionID>
across the whole cluster.