Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=7]
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 A in single primary mode.
9 [connection server1]
10 include/start_and_bootstrap_group_replication.inc
11 [connection server2]
12 SET GLOBAL group_replication_member_weight=99;
13 include/start_group_replication.inc
14 [connection server3]
15 include/start_group_replication.inc
16
17 ############################################################
18 # 2. Deploy a 3 members group B in single primary mode.
19 [connection server4]
20 include/start_and_bootstrap_group_replication.inc
21 [connection server5]
22 SET GLOBAL group_replication_member_weight=99;
23 include/start_group_replication.inc
24 [connection server6]
25 include/start_group_replication.inc
26
27 ############################################################
28 # 3. Configure replica to manage the asynchronous connection
29 # to groups A and B.
30 [connection server7]
31 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_2, '', 90, 70);;
32 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_2, '', 90, 70)
33 The UDF asynchronous_connection_failover_add_managed() executed successfully.
34 SELECT asynchronous_connection_failover_add_managed('ch2', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_5, '', 85, 65);;
35 asynchronous_connection_failover_add_managed('ch2', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_5, '', 85, 65)
36 The UDF asynchronous_connection_failover_add_managed() executed successfully.
37 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server2']
38 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server5']
39 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group A']
40 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group B']
41
42 ############################################################
43 # 4. Create and start the managed channels.
44 [connection server7]
45 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=1 FOR CHANNEL 'ch1';
46 Warnings:
47 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
48 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.
49 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_4_PORT, SOURCE_CONNECT_RETRY=1, SOURCE_RETRY_COUNT=1 FOR CHANNEL 'ch2';
50 Warnings:
51 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
52 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.
53 include/start_slave.inc [FOR CHANNEL 'ch1']
54 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server1]
55 include/start_slave.inc [FOR CHANNEL 'ch2']
56 include/assert.inc [Verify channel ch2 IO_THREAD is ON and connected to server4]
57
58 ############################################################
59 # 5. Stop primary from group A (server1) and the replica
60 # shall connect to new primary server2.
61 [connection server1]
62 include/stop_group_replication.inc
63 [connection server7]
64
65 ############################################################
66 # 6. Stop primary from group B (server4) and the replica
67 # shall connect to new primary server5.
68 [connection server4]
69 include/stop_group_replication.inc
70 [connection server7]
71
72 ############################################################
73 # 7. Validate that channel ch1 did not reconnect to ch2 sources.
74 [connection server7]
75 include/assert_grep.inc [ch1 did not reconnect to server4]
76 include/assert_grep.inc [ch1 did not reconnect to server5]
77 include/assert_grep.inc [ch1 did not reconnect to server6]
78
79 ############################################################
80 # 8. Validate that channel ch2 did not reconnect to ch1 sources.
81 [connection server7]
82 include/assert_grep.inc [ch2 did not reconnect to server1]
83 include/assert_grep.inc [ch2 did not reconnect to server2]
84 include/assert_grep.inc [ch2 did not reconnect to server3]
85
86 ############################################################
87 # 9. Clean up.
88 [connection server7]
89 SET SESSION sql_log_bin = 0;
90 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.");
91 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.");
92 SET SESSION sql_log_bin = 1;
93 include/stop_slave.inc [FOR CHANNEL 'ch1']
94 include/rpl_reset_slave.inc
95 include/stop_slave.inc [FOR CHANNEL 'ch2']
96 include/rpl_reset_slave.inc
97 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A');
98 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A')
99 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
100 SELECT asynchronous_connection_failover_delete_managed('ch2', 'GROUP_B');
101 asynchronous_connection_failover_delete_managed('ch2', 'GROUP_B')
102 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
103 [connection server6]
104 include/stop_group_replication.inc
105 [connection server5]
106 include/stop_group_replication.inc
107 SET GLOBAL group_replication_member_weight= DEFAULT;
108 [connection server3]
109 include/stop_group_replication.inc
110 [connection server2]
111 include/stop_group_replication.inc
112 SET GLOBAL group_replication_member_weight= DEFAULT;
113 include/group_replication_end.inc