Debian Codegraph @

mysql-test/suite/group_replication/r/gr_autorejoin_rejoin_after_switch_mpm2spm.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 ####
8 # 0) The test requires three servers.
9 ####
10
11 SET sql_log_bin = 0;
12 call mtr.add_suppression("Member was expelled from the group due to network failures, changing member status to ERROR.");
13 call mtr.add_suppression("The server was automatically set into read only mode after an error was detected.");
14 call mtr.add_suppression("Started auto-rejoin procedure attempt*");
15 call mtr.add_suppression("Auto-rejoin procedure attempt*");
16 SET sql_log_bin = 1;
17 include/gr_autorejoin_monitoring.inc
18 SET @debug_saved = @@GLOBAL.DEBUG;
19 SET @@GLOBAL.DEBUG='+d,group_replication_rejoin_short_retry';
20 SET @@GLOBAL.DEBUG='+d,group_replication_stop_before_rejoin';
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 ####
28 # 1) Expel one of the members.
29 ####
30
31 [connection server1]
32 SET GLOBAL group_replication_autorejoin_tries = 1;
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 ####
41 # 2) Verify that the expelled member will try to rejoin the group the
42 # number of it is configured in group_replication_autorejoin_tries
43 # sysvar.
44 ####
45
46 [connection server1]
47 SET DEBUG_SYNC = "now WAIT_FOR signal.autorejoin_waiting";
48 include/assert.inc [Auto-rejoin should be running]
49 include/assert.inc [super_read_only should be enabled]
50 include/assert.inc [We should have attempted 1 rejoin]
51 SET DEBUG_SYNC = "now SIGNAL signal.autorejoin_continue";
52
53 ####
54 # 3) Verify that it manages to rejoin the group.
55 ####
56
57 include/gr_wait_for_member_state.inc
58 include/rpl_gr_wait_for_number_of_members.inc
59 [connection server2]
60 include/rpl_gr_wait_for_number_of_members.inc
61 [connection server3]
62 include/rpl_gr_wait_for_number_of_members.inc
63
64 ####
65 # 4) Switch from multi-primary to single-primary.
66 ####
67
68 [connection server2]
69 SELECT group_replication_switch_to_single_primary_mode("MEMBER2_UUID");;
70 group_replication_switch_to_single_primary_mode("MEMBER2_UUID")
71 Mode switched to single-primary successfully.
72 [connection server1]
73 include/gr_assert_secondary_member.inc
74
75 ####
76 # 5) Cleanup.
77 ####
78
79 [connection server2]
80 SELECT group_replication_switch_to_multi_primary_mode();
81 group_replication_switch_to_multi_primary_mode()
82 Mode switched to multi-primary successfully.
83 [connection server1]
84 SET @@GLOBAL.DEBUG = @debug_saved;
85 SET @@GLOBAL.group_replication_autorejoin_tries = default;
86 include/gr_end_autorejoin_monitoring.inc
87 include/group_replication_end.inc