Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=4]
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 ############################################################
8 # 1. Deploy a 3 members group in single primary mode.
9 # Set group_replication_member_expel_timeout to 3600, so
10 # that a UNREACHABLE member is only expelled after 1 hour.
11 [connection server1]
12 SET GLOBAL group_replication_member_expel_timeout = 3600;
13 include/start_and_bootstrap_group_replication.inc
14 [connection server2]
15 SET GLOBAL group_replication_member_expel_timeout = 3600;
16 include/start_group_replication.inc
17 [connection server3]
18 SET GLOBAL group_replication_member_expel_timeout = 3600;
19 include/start_group_replication.inc
20
21 ############################################################
22 # 2. Configure replica to manage the asynchronous connection
23 # to group.
24 [connection server4]
25 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_NAME', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70);;
26 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_NAME', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70)
27 The UDF asynchronous_connection_failover_add_managed() executed successfully.
28 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server1']
29 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for server1']
30
31 ############################################################
32 # 3. Create and start the managed channel connected to server1.
33 [connection server4]
34 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_RETRY_COUNT=1, SOURCE_CONNECT_RETRY=1 FOR CHANNEL 'ch1';
35 Warnings:
36 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
37 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.
38 include/start_slave.inc [FOR CHANNEL 'ch1']
39 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server1]
40
41 ############################################################
42 # 4. Kill server1.
43 # Server will return without starting Group Replication.
44 [connection server1]
45 # Kill and restart
46 include/rpl_reconnect.inc
47 [connection server2]
48 include/gr_wait_for_member_state.inc
49 [connection server3]
50 include/gr_wait_for_member_state.inc
51
52 ############################################################
53 # 5. Validate that replica is connected to server2 or server3.
54 # Server1 is back and has the highest weight, but since it
55 # is not part of the group it cannot be selected as the sender.
56 [connection server4]
57 Wait until ch1 IO_THREAD is connected to server2 or server3
58
59 ############################################################
60 # 6. Wait 30 seconds and validate that replica is still connected
61 # to server2 or server3.
62 [connection server4]
63 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server2 or server3]
64
65 ############################################################
66 # 7. Assert that group information did not change, since the
67 # missing member is UNREACHABLE
68 [connection server4]
69 include/assert.inc ['There are 3 rows in performance_schema.replication_asynchronous_connection_failover']
70
71 ############################################################
72 # 8. Revert group_replication_member_expel_timeout to the
73 # default value on server2 and server3, which will cause
74 # server1 to be expelled.
75 [connection server2]
76 SET GLOBAL group_replication_member_expel_timeout = DEFAULT;
77 [connection server3]
78 SET GLOBAL group_replication_member_expel_timeout = DEFAULT;
79
80 ############################################################
81 # 9. server1 was removed from performance_schema.replication_asynchronous_connection_failover table.
82 # server4 is connected to the group primary.
83 [connection server4]
84 include/assert.inc ['There is no row in performance_schema.replication_asynchronous_connection_failover for server1']
85 Wait until ch1 IO_THREAD is connected to the group primary
86
87 ############################################################
88 # 10. Clean up.
89 [connection server4]
90 include/stop_slave.inc [FOR CHANNEL 'ch1']
91 include/rpl_reset_slave.inc
92 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_NAME');
93 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_NAME')
94 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
95 include/assert.inc ['There are no rows in performance_schema.replication_asynchronous_connection_failover']
96 include/assert.inc ['There are no rows in performance_schema.replication_asynchronous_connection_failover_managed']
97 SET SESSION sql_log_bin = 0;
98 call mtr.add_suppression("The source .* for channel 'ch1' has joined the group .*, and so added its entry into replication_asynchronous_connection_failover table.");
99 call mtr.add_suppression("The Monitor IO thread detected that the source .* does not belong to the group majority, thence the channel .* will try to connect to another source.*");
100 call mtr.add_suppression("The IO thread detected that the source .* does not belong to the group majority, thence the channel .* will try to connect to another source.");
101 call mtr.add_suppression("The source .* for channel 'ch1' has left the group .*, and so removed its entry from replication_asynchronous_connection_failover table.");
102 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.");
103 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.");
104 call mtr.add_suppression("The Monitor IO thread failed to connect to the source .* for channel .*, thence it will try to connect to another source.");
105 call mtr.add_suppression("Replica I/O for channel 'ch1': Source command COM_REGISTER_REPLICA failed: failed registering on source, reconnecting to try again.*");
106 SET SESSION sql_log_bin = 1;
107 [connection server3]
108 include/stop_group_replication.inc
109 [connection server2]
110 include/stop_group_replication.inc
111 [connection server1]
112 SET GLOBAL group_replication_member_expel_timeout = DEFAULT;
113 include/group_replication_end.inc