1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

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
This commit is contained in:
Brandon Nesterenko
2023-11-01 06:50:25 -06:00
parent 4b65859af6
commit c341743e83
2 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ set debug_sync= "now wait_for sql_thread_run_lock_released";
# Validating that Last_SQL_Errno is cleared.. # Validating that Last_SQL_Errno is cleared..
# ..success # ..success
set debug_sync= "now signal sql_thread_continue"; set debug_sync= "now signal sql_thread_continue";
# Wait for debug_sync signal to have been received before issuing RESET
set @@global.debug_dbug= @saved_dbug; set @@global.debug_dbug= @saved_dbug;
set debug_sync= "RESET"; set debug_sync= "RESET";
# Cleanup # Cleanup

View File

@@ -76,6 +76,10 @@ if ($last_error)
set debug_sync= "now signal sql_thread_continue"; set debug_sync= "now signal sql_thread_continue";
--echo # Wait for debug_sync signal to have been received before issuing RESET
let $wait_condition= select count(*)=0 from information_schema.processlist where state like "debug sync point%";
source include/wait_condition.inc;
set @@global.debug_dbug= @saved_dbug; set @@global.debug_dbug= @saved_dbug;
set debug_sync= "RESET"; set debug_sync= "RESET";