Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=3]
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. Server1 start, bootstrap the group and create table test.t1
8 include/start_and_bootstrap_group_replication.inc
9
10 # 2. Start server2 and server3
11 [connection server2]
12 set session sql_log_bin=0;
13 call mtr.add_suppression("A configuration change was killed in this member. The member will now leave the group as its configuration may have diverged.");
14 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
15 call mtr.add_suppression("Error while executing a group configuration operation: This operation ended in error as it was not possible to wait for the execution of the plugin queued transactions. The member will now leave the group.");
16 call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going.");
17 set session sql_log_bin=1;
18 include/start_group_replication.inc
19 [connection server3]
20 include/start_group_replication.inc
21
22 # 3. Fake a stopped applier on server2
23 [connection server2]
24 SET @@GLOBAL.DEBUG= '+d,group_replication_wait_for_gtid_execution_force_error';
25
26 # 4. Change to multi primary mode
27 [connection server1]
28 SELECT group_replication_switch_to_multi_primary_mode();
29 group_replication_switch_to_multi_primary_mode()
30 Mode switched to multi-primary successfully.
31
32 # 5. server2 shall fail and leave the group
33 [connection server1]
34 include/rpl_gr_wait_for_number_of_members.inc
35
36 # 6. Confirm server2 is on ERROR state
37 [connection server2]
38 include/gr_wait_for_member_state.inc
39 SET @@GLOBAL.DEBUG= '-d,group_replication_wait_for_gtid_execution_force_error';
40
41 # 7. Cleanup
42 include/group_replication_end.inc