Debian Codegraph @

mysql-test/suite/rpl/r/rpl_change_master_find_log_pos_err.result

raw
1 include/master-slave.inc
2 [connection master]
3 #
4 # Failed CHANGE MASTER TO should not change relay log status
5 #
6 connection slave;
7 include/stop_slave.inc
8 SET @@debug_dbug="d,simulate_find_log_pos_error";
9 CHANGE MASTER TO IGNORE_DOMAIN_IDS=(1), MASTER_USE_GTID=SLAVE_POS;
10 ERROR HY000: Target log not found in binlog index
11 SET @@debug_dbug="";
12 include/start_slave.inc
13 #
14 # Ensure relay log can be updated after a failed CHANGE MASTER
15 #
16 FLUSH RELAY LOGS;
17 include/wait_for_slave_param.inc [Relay_Log_File]
18 #
19 # Slave should continue to receive data from old master after failed
20 # CHANGE MASTER TO
21 #
22 connection master;
23 CREATE TABLE t1 (a int);
24 insert into t1 values (1);
25 connection slave;
26 connection slave;
27 #
28 # Future CHANGE MASTER calls should succeed
29 #
30 include/stop_slave.inc
31 CHANGE MASTER TO MASTER_USE_GTID=SLAVE_POS;
32 include/start_slave.inc
33 ########################
34 # Cleanup
35 ########################
36 connection master;
37 DROP TABLE t1;
38 connection slave;
39 include/stop_slave.inc
40 RESET SLAVE ALL;
41 change master to master_port=MASTER_MYPORT, master_host='127.0.0.1', master_user='root';
42 include/start_slave.inc
43 include/rpl_end.inc