← Back
Editing: rpl_gtid_mixed_rows_and_stmts_tx_isolation_error.test
# ==== Purpose ==== # # This test will generate transactions on the master mixing RBR and SBR, # instructing the master to set the flag stating that the transactions are pure # RBR using debug instrumentation. # # Since BUG#25040331 fix there is an optimization on the slave applier that # will set the transaction isolation level to READ COMMITTED for pure row based # transactions when the applier's transaction isolation level is more # restrictive than that. # # This optimization is assuming that no QUERY (other than terminal transaction # ones, like "COMMIT", "ROLLBACK", "XA END") can happen in the middle of a pure # row based replicated transaction (the flag is set on the GTID event). # # This test will assert that the slave applier will fail when using the # optimization and finding a non-terminal QUERY in the middle of a assumed pure # row based replicated transaction. # # ==== Related Bugs and Worklogs ==== # # BUG#25040331: INTERLEAVED XA TRANSACTIONS MAY DEADLOCK SLAVE APPLIER WITH # REPEATABLE READ # --source include/have_debug.inc --source include/have_gtid.inc # The test case only make sense for MIXED --source include/have_binlog_format_mixed.inc --source include/master-slave.inc --source include/rpl_connection_slave.inc CALL mtr.add_suppression('transaction isolation level was updated to READ_COMMITTED'); --echo # Testing without XA transactions --let $use_xa= 0 --source extra/rpl_tests/rpl_gtid_mixed_rows_and_stmts_tx_isolation_error.inc # The XA part of this test case will fail until BUG#25741071 be fixed. # Please uncomment the following three lines after fixing BUG#25741071. #--echo # Testing with XA transactions #--let $use_xa= 1 #--source extra/rpl_tests/rpl_gtid_mixed_rows_and_stmts_tx_isolation_error.inc --source include/rpl_end.inc
Save File
Cancel