Debian Codegraph @

mysql-test/suite/rpl_gtid/r/rpl_gtid_deleted_binlog_fail_to_connect.result

raw
1 #
2 # 1) Create a master-slave setup.
3 #
4 include/master-slave.inc
5 Warnings:
6 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
7 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
8 [connection master]
9 #
10 # 2) Create a table on master, sync it, stop the slave threads and dump
11 # thread on master.
12 #
13 CREATE TABLE t1 (a INT) ENGINE = InnoDB;
14 include/sync_slave_sql_with_master.inc
15 include/stop_slave.inc
16 [connection master]
17 include/stop_dump_threads.inc
18 #
19 # 3) On master, generate a transaction, flush the binary log and delete
20 # the first binary logs so that only remaining binlog only contains
21 # transaction UUID:3.
22 #
23 INSERT INTO t1 VALUES (1);
24 FLUSH LOGS;
25 INSERT INTO t1 VALUES (2);
26 #
27 # 4) Verify that the slave fails if it tries to connect using CHANGE
28 # MASTER TO MASTER_AUTO_POSITION=1.
29 #
30 [connection slave]
31 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION = 1;
32 START SLAVE;
33 Warnings:
34 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
35 include/wait_for_slave_io_error.inc [errno=13114 # ER_SOURCE_FATAL_ERROR_READING_BINLOG]
36 include/stop_slave_sql.inc
37 #
38 # 5) Verify that appropriate messages are logged into master's and slave's
39 # error log.
40 #
41 include/assert_grep.inc [Found warning containing lost GTIDs in the master error log.]
42 include/assert_grep.inc [Found warning containing lost GTIDs in the slave error log.]
43 #
44 # 6) Verify that replication succeeds if it tries to connect using CHANGE
45 # MASTER TO MASTER_LOG_POS.
46 #
47 CHANGE REPLICATION SOURCE TO SOURCE_LOG_FILE = 'MASTER_FILE', SOURCE_LOG_POS = MASTER_POS, SOURCE_AUTO_POSITION = 0;
48 include/start_slave.inc
49 include/assert.inc [t1 should contain only one row with the value 2]
50 include/stop_slave.inc
51 [connection master]
52 CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*");
53 CALL mtr.add_suppression("Failed to open log");
54 CALL mtr.add_suppression("Could not open log");
55 [connection slave]
56 CALL mtr.add_suppression("Got fatal error 1236 from source.*Replicate the missing transactions from elsewhere");
57 #
58 # 7) Cleanup.
59 #
60 RESET MASTER;
61 RESET SLAVE;
62 [connection master]
63 RESET MASTER;
64 [connection slave]
65 include/start_slave.inc
66 [connection master]
67 DROP TABLE t1;
68 include/sync_slave_sql_with_master.inc
69 include/rpl_end.inc