mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
After fix of MDEV-6728, the KILL signal is reset at the start of query execution. This means that in this test case, we need to wait for the to-be-killed query to have started; otherwise the kill signal can be lost, causing the test case to fail.
19 lines
612 B
Plaintext
19 lines
612 B
Plaintext
connect con1,localhost,root,,;
|
|
SHOW PROCESSLIST;
|
|
Id User Host db Command Time State Info Progress
|
|
# root # test Sleep # # NULL 0.000
|
|
# root # test Query # # SHOW PROCESSLIST 0.000
|
|
SET DEBUG_SYNC='before_execute_sql_command SIGNAL ready WAIT_FOR go';
|
|
SHOW PROCESSLIST;
|
|
connection default;
|
|
SET DEBUG_SYNC='now WAIT_FOR ready';
|
|
KILL QUERY con_id;
|
|
SET DEBUG_SYNC='now SIGNAL go';
|
|
connection con1;
|
|
ERROR 70100: Query execution was interrupted
|
|
SET DEBUG_SYNC='reset';
|
|
SHOW PROCESSLIST;
|
|
Id User Host db Command Time State Info Progress
|
|
# root # test Sleep # # NULL 0.000
|
|
# root # test Query # # SHOW PROCESSLIST 0.000
|