Debian Codegraph @

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

raw
1 # 1. Skip the group start
2 include/group_replication.inc
3 Warnings:
4 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
5 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.
6 [connection server1]
7 # 2. Start and bootstrap the group with server 1
8 [connection server1]
9 include/start_and_bootstrap_group_replication.inc
10 # 3. Change server 2 group_replication_local_address to be the same as
11 # server 1
12 [connection server2]
13 SET SESSION sql_log_bin= 0;
14 call mtr.add_suppression("\\[GCS\\] Error connecting to all peers. Member join failed. Local port:*");
15 call mtr.add_suppression("\\[GCS\\] The member was unable to join the group.*");
16 call mtr.add_suppression("Timeout on wait for view after joining group");
17 SET SESSION sql_log_bin= 1;
18 SET @local_address_save= @@GLOBAL.group_replication_local_address;
19 SET GLOBAL group_replication_local_address= "GROUP_REPLICATION_SERVER_1_ADDRESS";
20 # 4. Manually start server 2 and expect it to fail while joining the
21 # group
22 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
23 START GROUP_REPLICATION;
24 ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
25 # 5. Restore server 2 original address
26 SET @@GLOBAL.group_replication_local_address= @local_address_save;
27 # 6. Server 2 must successfully join the group
28 include/start_group_replication.inc
29 # 7. Clean up.
30 include/group_replication_end.inc