Debian Codegraph @

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

raw
1 # ==== Purpose ====
2 #
3 # This test will make the slave to skip a transaction that is incomplete in
4 # the relay log.
5 #
6 # SQL thread should be able to skip the partial transaction and progress to
7 # the next relay log file.
8 #
9 # ==== Related Bugs and Worklogs ====
10 #
11 # BUG#25800025 SQL THREAD ERROR 1778 WHEN GTID SKIPPING PARTIAL TRX
12
13 # this test requires certain events to appear in the relay log.
14 # With compression enabled, this is not the case.
15 --source include/not_binlog_transaction_compression_on.inc
16
17 --source include/have_debug.inc
18 --source include/have_debug_sync.inc
19 --let $rpl_gtid_utils= 1
20 --source include/master-slave.inc
21
22 --let $master_uuid=`SELECT @@SERVER_UUID`
23 CREATE TABLE t1 (c1 INT);
24
25 --source include/sync_slave_sql_with_master.inc
26 --source include/stop_slave.inc
27
28 --source include/rpl_connection_master.inc
29 INSERT INTO t1 VALUES (1);
30
31 # Make the I/O to stop in the middle of the transaction
32 # right after the QUERY(BEGIN)
33 --source include/rpl_connection_slave.inc
34 --let $rpl_after_received_events_action= stop
35 --let $rpl_event_count= 1
36 --let $rpl_count_only_event_type= Query
37 --source include/rpl_receive_event_count.inc
38
39 # Restart the I/O thread
40 --source include/start_slave_io.inc
41
42 # Make the slave to GTID skip the partial transaction
43 --source include/rpl_skip_to_end_of_relay_log.inc
44
45 --source include/rpl_connection_master.inc
46 DROP TABLE t1;
47
48 --source include/rpl_end.inc