Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=5]
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. Deploy a 2 members group A in single primary mode.
8
9 [connection server1]
10 include/start_and_bootstrap_group_replication.inc
11 [connection server2]
12 include/start_group_replication.inc
13
14 # 2. Deploy a 2 members group B in single primary mode.
15
16 [connection server3]
17 include/start_and_bootstrap_group_replication.inc
18 [connection server4]
19 include/start_group_replication.inc
20
21 # 3. Configure replica to manage the asynchronous connection
22 # to groups A and B.
23
24 [connection server5]
25 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70);;
26 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_A', '127.0.0.1', SERVER_MYPORT_1, '', 90, 70)
27 The UDF asynchronous_connection_failover_add_managed() executed successfully.
28 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_3, '', 85, 65);;
29 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP_B', '127.0.0.1', SERVER_MYPORT_3, '', 85, 65)
30 The UDF asynchronous_connection_failover_add_managed() executed successfully.
31 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server1']
32 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover for server3']
33 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group A']
34 include/assert.inc ['There is one row in performance_schema.replication_asynchronous_connection_failover_managed for group B']
35
36 # 4. Create and start the managed channel.
37
38 [connection server5]
39 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';
40 Warnings:
41 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
42 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.
43 include/start_slave.inc [FOR CHANNEL 'ch1']
44 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server1]
45
46 # 5. Stop server2 from group A and validate is removed from senders list
47
48 [connection server2]
49 include/stop_group_replication.inc
50 [connection server5]
51 include/assert.inc ['There is no row in performance_schema.replication_asynchronous_connection_failover for server2']
52
53 # 6. Join server2 to group B and validate is added to senders list
54
55 [connection server2]
56 RESET MASTER;
57 include/start_group_replication.inc
58 [connection server5]
59 include/assert.inc ['There one row in performance_schema.replication_asynchronous_connection_failover for server2']
60
61 # 7. Clean up.
62
63 [connection server5]
64 SET SESSION sql_log_bin = 0;
65 call mtr.add_suppression("The source .* for channel 'ch1' has joined the group .*, and so added its entry into replication_asynchronous_connection_failover table.");
66 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.");
67 call mtr.add_suppression("The source .* for channel 'ch1' has left the group .*, and so removed its entry from replication_asynchronous_connection_failover table.");
68 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.");
69 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.");
70 call mtr.add_suppression("The Monitor IO thread failed to detect if the source belongs to the group majority on the source .* for channel .*");
71 SET SESSION sql_log_bin = 1;
72 include/stop_slave.inc [FOR CHANNEL 'ch1']
73 include/rpl_reset_slave.inc
74 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A');
75 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_A')
76 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
77 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP_B');
78 asynchronous_connection_failover_delete_managed('ch1', 'GROUP_B')
79 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
80 [connection server1]
81 include/stop_group_replication.inc
82 [connection server2]
83 include/stop_group_replication.inc
84 [connection server3]
85 include/stop_group_replication.inc
86 [connection server4]
87 include/stop_group_replication.inc
88 include/group_replication_end.inc