Debian Codegraph @

mysql-test/suite/rpl_nogtid/t/rpl_write_ignored_events.test

raw
1 # ==== Purpose ====
2 #
3 # This test will ensure that the I/O thread is writing the ROTATE event
4 # of ignored events when stopping without the SQL thread consuming the
5 # ignored events information.
6 #
7 # ==== Related Bugs and Worklogs ====
8 #
9 # WL#8599: Reduce contention in IO and SQL threads
10 #
11
12 # This test case is binary log format agnostic
13 --source include/have_binlog_format_row.inc
14 --let $rpl_skip_start_slave=1
15 --source include/master-slave.inc
16
17 --source include/rpl_connection_slave.inc
18 CHANGE REPLICATION SOURCE TO IGNORE_SERVER_IDS = (1);
19 --source include/start_slave_io.inc
20
21 --source include/rpl_connection_master.inc
22 CREATE TABLE t1 (c1 INT);
23 DROP TABLE t1;
24
25 --source include/sync_slave_io_with_master.inc
26
27 # The last event of the relay log should be a rotate with
28 # the latest master position received by the I/O thread.
29 --let $binlog_file= slave-relay-bin.000002
30 --let $binlog_limit= 3
31 --source include/show_relaylog_events.inc
32
33 --source include/stop_slave_io.inc
34 CHANGE REPLICATION SOURCE TO IGNORE_SERVER_IDS = ();
35 --source include/start_slave.inc
36
37 --source include/rpl_connection_master.inc
38 CREATE TABLE t1 (c1 INT);
39 INSERT INTO t1 (c1) VALUES (1);
40 DROP TABLE t1;
41
42 --source include/rpl_end.inc