Debian Codegraph @

mysql-test/suite/rpl_gtid/r/rpl_gtid_purged_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 execute
20 # PURGE BINARY LOGS TO command 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 PURGE BINARY LOGS TO 'master-bin.000002';
27 include/assert.inc [PURGE BINARY LOGS successfully removed all but the latest file]
28 #
29 # 4) Verify that the slave fails if it tries to connect using CHANGE
30 # MASTER TO MASTER_AUTO_POSITION=1.
31 #
32 [connection slave]
33 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION = 1;
34 START SLAVE;
35 Warnings:
36 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
37 include/wait_for_slave_io_error.inc [errno=13114 # ER_SOURCE_FATAL_ERROR_READING_BINLOG]
38 include/stop_slave_sql.inc
39 [connection master]
40 SET @saved_debug= @@GLOBAL.DEBUG;
41 SET GLOBAL DEBUG= '+d,simulate_long_missing_gtids';
42 [connection slave]
43 START SLAVE;
44 Warnings:
45 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
46 include/wait_for_slave_io_error.inc [errno=13114 # ER_SOURCE_FATAL_ERROR_READING_BINLOG]
47 include/stop_slave_sql.inc
48 [connection master]
49 SET GLOBAL DEBUG= @saved_debug;
50 [connection slave]
51 #
52 # 5) Verify that appropriate messages are logged into master's and slave's
53 # error log.
54 #
55 include/assert_grep.inc [Found a message about the long GTIDs in the slave error log.]
56 #
57 # 6) Verify that replication succeeds if it tries to connect using CHANGE
58 # MASTER TO MASTER_LOG_POS.
59 #
60 CHANGE REPLICATION SOURCE TO SOURCE_LOG_FILE = 'MASTER_FILE', SOURCE_LOG_POS = MASTER_POS, SOURCE_AUTO_POSITION = 0;
61 include/start_slave.inc
62 include/assert.inc [t1 should contain only one row with the value 2]
63 include/stop_slave.inc
64 include/assert_grep.inc [Found warning containing lost GTIDs in the master error log.]
65 include/assert_grep.inc [Found warning containing lost GTIDs in the slave error log.]
66 [connection master]
67 CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*");
68 [connection slave]
69 CALL mtr.add_suppression("Got fatal error 1236 from source.*Replicate the missing transactions from elsewhere");
70 #
71 # 7) Cleanup.
72 #
73 [connection slave]
74 RESET MASTER;
75 RESET SLAVE;
76 Warnings:
77 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
78 [connection master]
79 RESET MASTER;
80 [connection slave]
81 include/start_slave.inc
82 [connection master]
83 DROP TABLE t1;
84 include/sync_slave_sql_with_master.inc
85 include/rpl_end.inc