Debian Codegraph @

mysql-test/suite/rpl_gtid/t/rpl_trx_boundary_parser_stmt_myisam.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 --source include/force_myisam_default.inc
24 --source include/have_myisam.inc
25
26 --let $rpl_gtid_utils= 1
27 --source include/have_binlog_format_statement.inc
28 --source include/master-slave.inc
29
30 --echo # Using MyISAM storage engine
31 --let $storage_engine= MyISAM
32 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
33
34 #
35 # As we are going to use GTID related checks for the IO thread after
36 # a CHANGE MASTER, we will first reset both slave and master to avoid
37 # problems with the gtid related mtr includes.
38 #
39 --source include/rpl_connection_slave.inc
40 --source include/stop_slave.inc
41 RESET MASTER;
42 RESET SLAVE;
43 --source include/rpl_connection_master.inc
44 RESET MASTER;
45
46 #
47 # Disabling slave's auto positioning
48 #
49 --source include/rpl_connection_slave.inc
50 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
51 --source include/start_slave.inc
52
53 --echo # Using MyISAM storage engine without auto positioning
54 --let $storage_engine= MyISAM
55 --source extra/rpl_tests/rpl_trx_boundary_parser.inc
56
57 # Enabling slave's auto positioning again
58 #
59 --source include/rpl_connection_slave.inc
60 --source include/stop_slave.inc
61 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
62 --source include/start_slave.inc
63
64 --source include/rpl_end.inc