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