Debian Codegraph @

mysql-test/suite/group_replication/r/gr_acf_57_sources.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 [connection server1]
10 include/start_and_bootstrap_group_replication.inc
11 [connection server2]
12 include/start_group_replication.inc
13 [connection server3]
14 include/start_group_replication.inc
15 ############################################################
16 # 2. Configure replica to manage the asynchronous connection
17 # to the group.
18
19 [connection server4]
20 SELECT asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP', '127.0.0.1', SERVER_MYPORT_2, '', 80, 70);;
21 asynchronous_connection_failover_add_managed('ch1', 'GroupReplication', 'GROUP', '127.0.0.1', SERVER_MYPORT_2, '', 80, 70)
22 The UDF asynchronous_connection_failover_add_managed() executed successfully.
23 ###########################################################
24 # 3. Create and start the managed channel.
25 # Replica will connect to server1 (weigth: 80).
26 [connection server4]
27 SET @@GLOBAL.DEBUG='+d,rpl_acf_simulate_57_source';
28 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_3_PORT, SOURCE_CONNECT_RETRY=1, SOURCE_RETRY_COUNT=1 FOR CHANNEL 'ch1';
29 Warnings:
30 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
31 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.
32 include/start_slave.inc [FOR CHANNEL 'ch1']
33 SELECT * FROM performance_schema.replication_asynchronous_connection_failover ORDER BY weight DESC;
34 CHANNEL_NAME HOST PORT NETWORK_NAMESPACE WEIGHT MANAGED_NAME
35 ch1 127.0.0.1 PORT 80 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
36 ch1 127.0.0.1 PORT 70 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
37 ch1 127.0.0.1 PORT 70 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
38 Wait until ch1 IO_THREAD is connected to server1
39 ############################################################
40 # 4. Switch group to multi-primary mode.
41 # Validate that group sources weight is updated.
42 [connection server1]
43 SELECT group_replication_switch_to_multi_primary_mode();
44 group_replication_switch_to_multi_primary_mode()
45 Mode switched to multi-primary successfully.
46 [connection server4]
47 SELECT * FROM performance_schema.replication_asynchronous_connection_failover ORDER BY weight DESC;
48 CHANNEL_NAME HOST PORT NETWORK_NAMESPACE WEIGHT MANAGED_NAME
49 ch1 127.0.0.1 PORT 80 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
50 ch1 127.0.0.1 PORT 80 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
51 ch1 127.0.0.1 PORT 80 aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
52 include/assert.inc [Verify channel ch1 IO_THREAD is ON and connected to server1]
53 ############################################################
54 # 5. Clean up.
55 [connection server4]
56 include/stop_slave.inc [FOR CHANNEL 'ch1']
57 include/rpl_reset_slave.inc
58 SELECT asynchronous_connection_failover_delete_managed('ch1', 'GROUP');
59 asynchronous_connection_failover_delete_managed('ch1', 'GROUP')
60 The UDF asynchronous_connection_failover_delete_managed() executed successfully.
61 SET @@GLOBAL.DEBUG='-d,rpl_acf_simulate_57_source';
62 [connection server3]
63 SELECT group_replication_switch_to_single_primary_mode("SERVER1");
64 group_replication_switch_to_single_primary_mode("SERVER1")
65 Mode switched to single-primary successfully.
66 include/stop_group_replication.inc
67 [connection server2]
68 include/stop_group_replication.inc
69 [connection server1]
70 include/stop_group_replication.inc
71 include/group_replication_end.inc