-
Notifications
You must be signed in to change notification settings - Fork 752
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
Feature: MySQL handler Kill Query #4871
Comments
MySQL will send In MySQL: mysql -uroot -h127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 8.0.27 Source distribution
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
root@mysqldb 13:09:35 [(none)]> SELECT CONNECTION_ID();
+-----------------+
| CONNECTION_ID() |
+-----------------+
| 14 |
+-----------------+
1 row in set (0.01 sec)
root@mysqldb 13:09:36 [(none)]> select version();
+-----------+
| version() |
+-----------+
| 8.0.27 |
+-----------+
1 row in set (0.00 sec)
when we press Ctrl + C, the client will send How do we deal with this query? I this the best way is linking the connection_id to our processlist id. |
In ClickHouse the MySQL connection query id is : press Ctrl + C will send this query:
|
processlist now has id field, but it's query id.
We can modify the parser to handle this kill query. |
MySQL handler does not implement the kill for the new processor, reopened. |
Maybe is this issue? #5485 |
Related to #5481 (comment)? How can we do |
Client:
Server:
|
Clickhouse handler also has this issue. |
Also fixed by #5803 |
Summary
Description for this feature.
Reproduce steps:
Running continous queries using MySQL client and pressed Ctrl + C:
It's same issue as #3997
The text was updated successfully, but these errors were encountered: