Skip to content

Commit c341743

Browse files
committed
MDEV-32651: Lost Debug_sync signal in rpl_sql_thd_start_errno_cleared
The test rpl.rpl_sql_thd_start_errno_cleared can lose a debug_sync signal, as there is a RESET immediately following a SIGNAL. When the signal is lost, the sql_thread is stuck in a WAIT_FOR clause until it times out, resulting in long test times (albeit still successful). This patch extends the test to ensure the debug_sync signal was received before issuing the RESET
1 parent 4b65859 commit c341743

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mysql-test/suite/rpl/r/rpl_sql_thd_start_errno_cleared.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ set debug_sync= "now wait_for sql_thread_run_lock_released";
3434
# Validating that Last_SQL_Errno is cleared..
3535
# ..success
3636
set debug_sync= "now signal sql_thread_continue";
37+
# Wait for debug_sync signal to have been received before issuing RESET
3738
set @@global.debug_dbug= @saved_dbug;
3839
set debug_sync= "RESET";
3940
# Cleanup

mysql-test/suite/rpl/t/rpl_sql_thd_start_errno_cleared.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ if ($last_error)
7676

7777
set debug_sync= "now signal sql_thread_continue";
7878

79+
--echo # Wait for debug_sync signal to have been received before issuing RESET
80+
let $wait_condition= select count(*)=0 from information_schema.processlist where state like "debug sync point%";
81+
source include/wait_condition.inc;
82+
7983
set @@global.debug_dbug= @saved_dbug;
8084
set debug_sync= "RESET";
8185

0 commit comments

Comments
 (0)