Debian Codegraph @

mysql-test/suite/rpl_gtid/t/rpl_trx_boundary_parser_row.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 --source include/not_group_replication_plugin.inc
20 # This test should run only on debug build
21 --source include/have_debug.inc
22 # This test uses debug sync to stop the IO thread in the middle of a transaction
23 --source include/have_debug_sync.inc
24
25 # this test case requires that the receiver thread stops after
26 # some events. See: stop_io_after_reading_query_log_event
27 --source include/not_binlog_transaction_compression_on.inc
28
29 --let $rpl_gtid_utils= 1
30 --source include/have_binlog_format_row.inc
31 --source include/not_rpl_gtid_only.inc
32 --source include/master-slave.inc
33
34 --echo # Using InnoDB storage engine
35 --let $storage_engine= InnoDB
36 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
37
38 #
39 # As we are going to use GTID related checks for the IO thread after
40 # a CHANGE MASTER, we will first reset both slave and master to avoid
41 # problems with the gtid related mtr includes.
42 #
43 --source include/rpl_connection_slave.inc
44 --source include/stop_slave.inc
45 RESET MASTER;
46 RESET SLAVE;
47 --source include/rpl_connection_master.inc
48 RESET MASTER;
49
50 #
51 # Disabling slave's auto positioning
52 #
53 --source include/rpl_connection_slave.inc
54 --source include/stop_slave.inc
55 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
56 --source include/start_slave.inc
57
58 --echo # Using InnoDB storage engine without auto positioning
59 --let $storage_engine= InnoDB
60 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
61
62 #
63 # Enabling slave's auto positioning again
64 #
65 --source include/rpl_connection_slave.inc
66 --source include/stop_slave.inc
67 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
68 --source include/start_slave.inc
69
70 --source include/rpl_end.inc