Debian Codegraph @

mysql-test/suite/group_replication/r/gr_autorejoin_failure_during_mid_join.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. Start 3 servers.
8 SET sql_log_bin = 0;
9 call mtr.add_suppression("Member was expelled from the group due to network failures, changing member status to ERROR.");
10 call mtr.add_suppression("Started auto-rejoin procedure attempt*");
11 call mtr.add_suppression("Auto-rejoin procedure attempt*");
12 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
13 call mtr.add_suppression("Unable to confirm whether the server has left the group or not. Check performance_schema.replication_group_members to check group membership information.");
14 call mtr.add_suppression("Timeout while waiting for a view change event during the leave step before a auto-rejoin attempt.");
15 call mtr.add_suppression("Timeout while waiting for a view change event during the auto-rejoin procedure");
16 call mtr.add_suppression("Error while sending message in the group replication incremental recovery process.");
17 SET sql_log_bin = 1;
18 include/gr_autorejoin_monitoring.inc
19 SET @debug_saved = @@GLOBAL.DEBUG;
20 SET @group_replication_autorejoin_tries_saved = @@GLOBAL.group_replication_autorejoin_tries;
21 include/start_and_bootstrap_group_replication.inc
22 [connection server2]
23 include/start_group_replication.inc
24 [connection server3]
25 include/start_group_replication.inc
26
27 # 2. Enable auto-rejoin and expel one of the members.
28 [connection server1]
29 SET GLOBAL group_replication_autorejoin_tries = 1;
30 SET @@GLOBAL.DEBUG='+d,group_replication_skip_wait_for_view_modification';
31 SET @@GLOBAL.DEBUG='+d,group_replication_force_view_modification_timeout';
32 SET @@GLOBAL.DEBUG='+d,group_replication_autorejoin_allow_join_to_change_state';
33 include/gr_expel_member_from_group.inc
34 SET SESSION sql_log_bin = 0;
35 CREATE TABLE pid_table(pid_no INT PRIMARY KEY);
36 LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
37 DROP TABLE pid_table;
38 SET SESSION sql_log_bin = 1;
39
40 # 3. Make sure view-change initiated by auto-rejoin has changed member
41 # state out of ERROR.
42 # Unblock wait_for_view_modification to fail during auto rejoin.
43 SET DEBUG_SYNC= "now SIGNAL signal.group_replication_autorejoin_allow_join_to_change_state_resume";
44
45 # 4. Verify that the expelled member will try to rejoin the group.
46
47 # 5. Assert member state is set to ERROR on view change failure.
48 include/gr_wait_for_member_state.inc
49 include/assert_and_disable_read_only.inc
50
51 # 6. Cleanup.
52 [connection server1]
53 SET @@GLOBAL.DEBUG = @debug_saved;
54 include/stop_group_replication.inc
55 include/start_group_replication.inc
56 SET @@GLOBAL.group_replication_autorejoin_tries = @group_replication_autorejoin_tries_saved;
57 include/gr_end_autorejoin_monitoring.inc
58 include/group_replication_end.inc