Skip to content

Commit

Permalink
Fixed random failure in main.kill_processlist-6619
Browse files Browse the repository at this point in the history
wait for all previous connections to disconnect and for all previous
queries to finish running
  • Loading branch information
vuvova committed Mar 27, 2024
1 parent 3226787 commit 81f75ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mysql-test/main/kill_processlist-6619.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
--source include/not_embedded.inc
--source include/have_debug_sync.inc

let $wait_condition=select count(*) = 1 from information_schema.processlist;
source include/wait_condition.inc;

--connect (con1,localhost,root,,)
--let $con_id = `SELECT CONNECTION_ID()`

let $wait_condition=select info is NULL from information_schema.processlist where id != $con_id;
source include/wait_condition.inc;

--replace_result Execute Query
--replace_column 1 # 3 # 6 # 7 #
SHOW PROCESSLIST;
Expand Down

0 comments on commit 81f75ca

Please sign in to comment.