Debian Codegraph @

mysql-test/suite/group_replication/r/gr_autorejoin_spm.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 [connection server2]
49 include/rpl_gr_wait_for_number_of_members.inc
50 [connection server3]
51 include/rpl_gr_wait_for_number_of_members.inc
52 include/gr_find_a_primary.inc
53 [connection server1]
54 include/assert.inc [Auto-rejoin should be running]
55 include/assert.inc [super_read_only should be enabled]
56 include/assert.inc [We should have attempted 1 rejoin]
57 SET DEBUG_SYNC = "now SIGNAL signal.autorejoin_continue";
58
59 ####
60 # 3) Verify that it manages to rejoin the group.
61 ####
62
63 include/gr_wait_for_member_state.inc
64 include/rpl_gr_wait_for_number_of_members.inc
65 [connection server2]
66 include/rpl_gr_wait_for_number_of_members.inc
67 [connection server3]
68 include/rpl_gr_wait_for_number_of_members.inc
69
70 ####
71 # 4) Verify that the newly rejoined member is no longer the primary.
72 ####
73
74 [connection server1]
75 include/gr_assert_secondary_member.inc
76
77 ####
78 # 5) Cleanup.
79 ####
80
81 include/stop_group_replication.inc
82 SET @@GLOBAL.DEBUG = @debug_saved;
83 SET @@GLOBAL.group_replication_autorejoin_tries = default;
84 include/gr_end_autorejoin_monitoring.inc
85 include/group_replication_end.inc