Debian Codegraph @

mysql-test/suite/group_replication/r/gr_acf_not_change_if_recovering.result

raw
1 include/group_replication.inc [rpl_server_count=3]
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 server1]
6
7 # 1. Bootstrap group with server1
8
9 [connection server1]
10 set session sql_log_bin=0;
11 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
12 set session sql_log_bin=1;
13 include/start_and_bootstrap_group_replication.inc
14 INSERT INTO test.t1 (b) VALUES (1);
15
16 # 2. Lock server2 on recovery and join it to the group
17
18 [connection server2]
19 set session sql_log_bin=0;
20 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
21 set session sql_log_bin=1;
22 [connection server_2]
23 LOCK TABLES t1 READ;
24 [connection server2]
25 include/start_group_replication.inc
26
27 # 3. Establish managed connection between server3 and server1.
28 # Secondaries priority is higher than primary
29
30 [connection server3]
31 set session sql_log_bin=0;
32 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
33 set session sql_log_bin=1;
34 SELECT asynchronous_connection_failover_add_managed('ch1_3', 'GroupReplication', 'FAILOVER_GROUP_NAME', '127.0.0.1', SERVER_MYPORT_1, '', 60, 80);;
35 asynchronous_connection_failover_add_managed('ch1_3', 'GroupReplication', 'FAILOVER_GROUP_NAME', '127.0.0.1', SERVER_MYPORT_1, '', 60, 80)
36 The UDF asynchronous_connection_failover_add_managed() executed successfully.
37
38 # 4. Create and start new channel ch1_3: server1(source),
39 # server3(replica)
40
41 CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='root', SOURCE_AUTO_POSITION=1, SOURCE_CONNECTION_AUTO_FAILOVER=1, SOURCE_PORT=SERVER_1_PORT, SOURCE_CONNECT_RETRY=1, SOURCE_RETRY_COUNT=2 FOR CHANNEL 'ch1_3';
42 Warnings:
43 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
44 Note 1760 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.
45 include/start_slave.inc [FOR CHANNEL 'ch1_3']
46
47 # 5. Confirm server1 and server2 members of group are added to
48 # performance_schema.replication_asynchronous_connection_failover.
49
50
51 # 6. Wait 30 seconds and validate that replica is still connected
52 # to server1.
53
54 include/assert.inc [Verify server1 is on replication_asynchronous_connection_failover]
55
56 # 7. After UNLOCK tables it shall reconnect to server2
57
58 [connection server_2]
59 UNLOCK TABLES;
60 include/gr_wait_for_member_state.inc
61 [connection server3]
62
63 # 8. Cleanup
64
65 SET SESSION sql_log_bin = 0;
66 call mtr.add_suppression("The source .* for channel 'ch1_3' has joined the group .*, and so added its entry into replication_asynchronous_connection_failover table.");
67 call mtr.add_suppression("The group .* for the channel .* has been removed, and so removed its entry from replication_asynchronous_connection_failover_managed and all the group members from replication_asynchronous_connection_failover table.");
68 call mtr.add_suppression("The group .* for the channel .* has been added, and so added its entry in replication_asynchronous_connection_failover_managed and source to replication_asynchronous_connection_failover table.");
69 SET SESSION sql_log_bin = 1;
70 include/stop_slave.inc [FOR CHANNEL 'ch1_3']
71 include/rpl_reset_slave.inc
72 SELECT asynchronous_connection_failover_delete_managed('ch1_3', 'GROUP_NAME');
73 asynchronous_connection_failover_delete_managed('ch1_3', 'GROUP_NAME')
74 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
75 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION=0 FOR CHANNEL 'ch1_3';
76 DROP TABLE t1;
77 [connection server1]
78 DROP TABLE t1;
79 include/group_replication_end.inc