1
# See rpl_gtid_mode_off_new_master.test.
3
--source include/have_debug.inc
4
--source include/have_gtid.inc
5
--source include/have_binlog_format_row.inc
7
--source include/master-slave.inc
10
CALL mtr.add_suppression('Slave I/O: The master uses an unknown GTID_MODE');
11
CALL mtr.add_suppression('The slave IO thread stops because the master has an unknown');
13
SET @save_debug= @@GLOBAL.DEBUG;
15
--source include/stop_slave.inc
16
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_gtid_mode_on_permissive';
17
--source include/start_slave.inc
18
--let $assert_text= Receiver thread should report that on_permissive is unknown
19
--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err
20
--let $assert_only_after= Slave I/O thread: connected to master
21
--let $assert_select= Slave I/O: The master uses an unknown GTID_MODE 'on_permissive'. Treating it as 'ON'.
22
--let $assert_count= 1
23
--source include/assert_grep.inc
25
--source include/stop_slave.inc
26
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_gtid_mode_on_something';
27
--source include/start_slave.inc
28
--let $assert_text= Receiver thread should report that on_something is unknown
29
--let $assert_select= Slave I/O: The master uses an unknown GTID_MODE 'on_something'. Treating it as 'ON'.
30
--source include/assert_grep.inc
32
--source include/stop_slave.inc
33
SET @@GLOBAL.DEBUG = 'd,simulate_master_has_unknown_gtid_mode';
35
--let $slave_io_errno= convert_error(ER_SLAVE_FATAL_ERROR)
36
--source include/wait_for_slave_io_error.inc
38
SET @@GLOBAL.DEBUG= @save_debug;
39
--source include/stop_slave_sql.inc
41
--source include/start_slave.inc
43
--source include/rpl_end.inc