Debian Codegraph @

mysql-test/suite/rpl_gtid/t/rpl_trx_boundary_parser_stmt.test

raw
1 # ==== Purpose ====
2 #
3 # Test the behavior of mysql server replication with the transaction boundary
4 # parser.
5 #
6 # This test will insert data in the master while the slave will have some debug
7 # sync points activated to stop the IO thread in the middle of the transaction
8 # what will cause the transactions to be spanned along distinct relay log files.
9 #
10 # As the GTID auto positioning protocol will retrieved the partial transactions
11 # from the beginning, we repeat the test again disabling GTID auto positioning.
12 #
13 # ==== Related Bugs and Worklogs ====
14 #
15 # BUG#17943188: SHOW SLAVE STATUS/RETRIEVED_GTID_SET MAY HAVE PARTIAL TRX OR
16 # MISS COMPLETE TRX
17 #
18
19 # This test should run only on debug build
20 --source include/have_debug.inc
21 # This test uses debug sync to stop the IO thread in the middle of a transaction
22 --source include/have_debug_sync.inc
23
24 --let $rpl_gtid_utils= 1
25 --source include/have_binlog_format_statement.inc
26 --source include/master-slave.inc
27
28 --echo # Using InnoDB storage engine
29 --let $storage_engine= InnoDB
30 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
31
32 #
33 # As we are going to use GTID related checks for the IO thread after
34 # a CHANGE MASTER, we will first reset both slave and master to avoid
35 # problems with the gtid related mtr includes.
36 #
37 --source include/rpl_connection_slave.inc
38 --source include/stop_slave.inc
39 RESET MASTER;
40 RESET SLAVE;
41 --source include/rpl_connection_master.inc
42 RESET MASTER;
43
44 #
45 # Disabling slave's auto positioning
46 #
47 --source include/rpl_connection_slave.inc
48 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
49 --source include/start_slave.inc
50
51 --echo # Using InnoDB storage engine without auto positioning
52 --let $storage_engine= InnoDB
53 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
54
55 #
56 # Enabling slave's auto positioning again
57 #
58 --source include/rpl_connection_slave.inc
59 --source include/stop_slave.inc
60 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
61 --source include/start_slave.inc
62
63 --source include/rpl_end.inc