mirror of
https://github.com/MariaDB/server.git
synced 2025-04-13 02:35:32 +02:00

Fix some random test failures following MDEV-32168 push. Don't blindly set $rpl_only_running_threads in many places. Instead explicit stop only the IO or SQL thread, as appropriate. Setting it interfered with rpl_end.inc in some cases. Rather than clearing it afterwards, better to not set it at all when it is not needed, removing ambiguity in the test about the state of the replication threads. Don't fail the test if include/stop_slave_io.inc finds an error in the IO thread after stop. Such errors can be simply because slave stop happened in the middle of the IO thread's initial communication with the master. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
32 lines
799 B
Text
32 lines
799 B
Text
--source include/master-slave.inc
|
|
|
|
call mtr.add_suppression("Timeout waiting for reply of binlog*");
|
|
create table t1 (i int);
|
|
|
|
set global rpl_semi_sync_master_enabled = ON;
|
|
|
|
--connection slave
|
|
--source include/stop_slave.inc
|
|
set global rpl_semi_sync_slave_enabled = ON;
|
|
change master to master_log_file='master-bin.000002', master_log_pos = 320;
|
|
|
|
start slave;
|
|
--let $slave_io_errno=1236
|
|
--source include/wait_for_slave_io_error.inc
|
|
|
|
--connection master
|
|
insert into t1 values (1);
|
|
reset master;
|
|
|
|
--connection slave
|
|
--source include/stop_slave_sql.inc
|
|
reset slave;
|
|
--source include/start_slave.inc
|
|
|
|
set global rpl_semi_sync_slave_enabled = OFF;
|
|
--connection master
|
|
drop table t1;
|
|
--sync_slave_with_master
|
|
--connection master
|
|
set global rpl_semi_sync_master_enabled = OFF;
|
|
--source include/rpl_end.inc
|