Debian Codegraph @

mysql-test/suite/rpl/t/rpl_checksum_undef.test

raw
1 #
2 #BUG#1353750 : REPLICATION FROM MASTER WITH NEW CHECKSUM ALGORITHM
3 #
4 # ==== Purpose ====
5 #
6 # The test check for the condition when the master uses a checksum algorithm
7 # which is unknown to the slave. In such a case the master will send the
8 # events with the new checksum while the slave treats it as no checksum.
9 # After the fix the slave will stop if it gets a new checksum from the master
10 # with the error message.
11 #
12 # ====Method====
13 #
14 # For testing out the above mentioned functionality we have injected a fault
15 # in the slave's code and trigger it through debug library.
16 # In the case we get the error message we stop the slave with the
17 # error code 1593 and then restart the slave.
18 #
19
20 --source include/not_group_replication_plugin.inc
21 --source include/have_debug.inc
22 --source include/master-slave.inc
23
24 connection slave;
25 --echo [ON SLAVE]
26 call mtr.add_suppression('The replica I/O thread was stopped because a fatal error is encountered');
27 --source include/stop_slave.inc
28
29 --let $debug_point= undefined_algorithm_on_replica
30 --source include/add_debug_point.inc
31
32 START SLAVE;
33 --let $slave_io_errno= 13117
34 --source include/wait_for_slave_io_error.inc
35
36 --source include/stop_slave.inc
37
38 --let $debug_point= undefined_algorithm_on_replica
39 --source include/remove_debug_point.inc
40
41 --source include/start_slave.inc
42
43 --source include/rpl_end.inc