3
# Verify cross-version replication from an old master to the up-to-date slave
5
# ==== Implementation ====
7
# Feed to the slave server a binlog recorded on an old version master
8
# via setting up slave-to-slave replication. The latter is done by means of
9
# the opt file and include/setup_fake_relay_log.inc.
10
# The master's binlog is treated as a relay log that the SQL thread executes.
13
--source include/have_log_bin.inc
15
# The test is disabled for windows due to
16
# Bug #42879 CHANGE MASTER RELAY_LOG_FILE=path fails on windows
17
# Todo: release it from not_windows
18
--source include/not_windows.inc
21
# Bug#31240 load data infile replication between (4.0 or 4.1) and 5.1 fails
24
--echo ==== Initialize ====
25
# the relay log contains create t1, t3 tables and load data infile
26
--let $fake_relay_log = $MYSQL_TEST_DIR/suite/binlog/std_data/binlog_old_version_4_1.000001
27
--source include/setup_fake_relay_log.inc
30
start slave sql_thread;
31
--let $slave_param = Exec_Master_Log_Pos
32
# end_log_pos of the last event of the relay log
33
--let $slave_param_value = 149436
34
--source include/wait_for_slave_param.inc
35
--echo ==== a prove that the fake has been processed successfully ====
36
SELECT COUNT(*) - 17920 as zero FROM t3;
38
--echo ==== Clean up ====
39
stop slave sql_thread;
40
--source include/cleanup_fake_relay_log.inc