mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
c287873795
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.
18 lines
612 B
Text
18 lines
612 B
Text
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
|