mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
8b3f956020
Removed the global suppression, added lots of local ones to affected tests Re-commit, now kept "Slave SQL" at start of patterns.
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
# Test for
|
|
# Bug #33931 assertion at write_ignored_events_info_to_relay_log if init_slave_thread() fails
|
|
# Bug #33932 assertion at handle_slave_sql if init_slave_thread() fails
|
|
|
|
source include/have_debug.inc;
|
|
source include/master-slave.inc;
|
|
|
|
connection slave;
|
|
|
|
# Add suppression for expected warnings in slaves error log
|
|
call mtr.add_suppression("Failed during slave I/O thread initialization");
|
|
call mtr.add_suppression("Slave SQL.*Failed during slave thread initialization.* 1593");
|
|
|
|
--source include/stop_slave.inc
|
|
reset slave;
|
|
|
|
# Set debug flags on slave to force errors to occur
|
|
SET GLOBAL debug="d,simulate_io_slave_error_on_init,simulate_sql_slave_error_on_init";
|
|
|
|
start slave;
|
|
|
|
#
|
|
# slave is going to stop because of emulated failures
|
|
# but there won't be any crashes nor asserts hit.
|
|
#
|
|
|
|
# 1593 = ER_SLAVE_FATAL_ERROR
|
|
--let $slave_sql_errno= 1593
|
|
--let $show_slave_sql_error= 1
|
|
--source include/wait_for_slave_sql_error.inc
|
|
|
|
#
|
|
# Cleanup
|
|
#
|
|
SET GLOBAL debug="";
|
|
|
|
# Clear Last_SQL_Error
|
|
RESET SLAVE;
|
|
|
|
--let $rpl_only_running_threads= 1
|
|
--source include/rpl_end.inc
|