Debian Codegraph @

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

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 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.
5 [connection master]
6
7 Create a replication user to use in change master tests.
8
9 CREATE USER replssl@localhost REQUIRE SSL;
10 GRANT REPLICATION SLAVE ON *.* TO replssl@localhost;
11 include/sync_slave_sql_with_master.inc
12
13 With both receiver and applier stopped, all CHANGE MASTER options should
14 be allowed.
15
16 include/stop_slave.inc
17 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
18 Warnings:
19 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
20 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.
21 Warning #### 'CHANGE MASTER TO ... IGNORE_SERVER_IDS='...' (when @@GLOBAL.GTID_MODE = ON)' is deprecated and will be removed in a future release.
22 CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
23 CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
24 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
25 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
26
27 With receiver stopped and applier running, we should be able to change
28 receiver options. Setting applier options should throw the correct error
29 message.
30
31 include/start_slave_sql.inc
32 Warnings:
33 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
34 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.
35 Warning #### 'CHANGE MASTER TO ... IGNORE_SERVER_IDS='...' (when @@GLOBAL.GTID_MODE = ON)' is deprecated and will be removed in a future release.
36 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
37 ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
38 CHANGE REPLICATION SOURCE TO ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL;
39 ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
40 CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
41 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
42 CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
43 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
44 CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10;
45 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
46 CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, RELAY_LOG_FILE= 'RELAY_LOG_FILE';
47 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
48 CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, RELAY_LOG_POS= RELAY_LOG_POS;
49 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
50 CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, SOURCE_DELAY=10;
51 ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
52
53 With applier stopped and receiver running, we should be able to change
54 applier options. Setting receiver options should throw the correct error
55 message.
56
57 include/stop_slave_sql.inc
58 include/start_slave_io.inc
59 CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
60 CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
61 CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10;
62 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
63 ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
64 CHANGE REPLICATION SOURCE TO SOURCE_HOST= 'localhost';
65 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
66 CHANGE REPLICATION SOURCE TO SOURCE_USER= 'replssl';
67 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
68 CHANGE REPLICATION SOURCE TO SOURCE_PASSWORD= '';
69 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
70 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
71 CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY= 20;
72 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
73 CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1;
74 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
75 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
76 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
77 CHANGE REPLICATION SOURCE TO SOURCE_HEARTBEAT_PERIOD= 20;
78 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
79 CHANGE REPLICATION SOURCE TO SOURCE_SSL= 1;
80 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
81 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
82 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
83 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
84 CHANGE REPLICATION SOURCE TO SOURCE_SSL_VERIFY_SERVER_CERT= 1;
85 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
86 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_HOST= 'localhost';
87 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
88 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_USER= 'replssl';
89 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
90 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_PASSWORD= '';
91 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
92 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
93 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_CONNECT_RETRY= 20;
94 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
95 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_RETRY_COUNT= 1;
96 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
97 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
98 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
99 CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10, SOURCE_HEARTBEAT_PERIOD= 20;
100 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
101 CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_SSL=1;
102 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
103 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
104 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
105 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
106 CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10, SOURCE_SSL_VERIFY_SERVER_CERT= 1;
107 ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
108 include/stop_slave.inc
109
110 cleanup
111
112 CHANGE REPLICATION SOURCE TO
113 SOURCE_HOST= '127.0.0.1',
114 SOURCE_USER= 'root',
115 SOURCE_DELAY= 0,
116 IGNORE_SERVER_IDS= (),
117 SOURCE_SSL= 0,
118 SOURCE_SSL_CA= '',
119 SOURCE_SSL_CERT= '',
120 SOURCE_SSL_KEY= '',
121 SOURCE_SSL_VERIFY_SERVER_CERT= 0;
122 Warnings:
123 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
124 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.
125 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= SAVE_AUTOPOSITION;
126 include/start_slave.inc
127 DROP USER replssl@localhost;
128 include/rpl_end.inc