Debian Codegraph @

mysql-test/suite/group_replication/t/gr_skip_wait_for_view_modification.test

raw
1 ################################################################################
2 # This test verifies that when a view is received after the STOP
3 # GROUP_REPLICATION has terminated but plugin is still installed,
4 # the view is properly handled.
5 #
6 # To test that we start a two members group, disable the wait for
7 # view install on member 2 leave and leave the group.
8 #
9 # Test:
10 # 0. The test requires two servers: M1 and M2.
11 # 1. With both members ONLINE. Set DEBUG point in M2 to disable the wait for
12 # view change.
13 # 2. Stop GR on M2.
14 # 3. Set DEBUG point to timeout on wait for view after joining group.
15 # 4. Start GR on M2. Expect error.
16 # 5. Wait for M2 to go OFFLINE.
17 ################################################################################
18 --source include/have_debug.inc
19 --source include/have_group_replication_plugin.inc
20 --source include/group_replication.inc
21
22 --connection server2
23 SET @debug_save= @@GLOBAL.DEBUG;
24
25 SET @@GLOBAL.DEBUG='+d,group_replication_skip_wait_for_view_modification';
26 --source include/stop_group_replication.inc
27 SET @@GLOBAL.DEBUG= @debug_save;
28
29
30 #
31 # Validate that view modification timeout is properly handled.
32 #
33 SET SESSION sql_log_bin= 0;
34 call mtr.add_suppression("Timeout on wait for view after joining group");
35 call mtr.add_suppression("While leaving the group due to a stop, shutdown or failure there was a timeout receiving a view change. This can lead to a possible inconsistent state. Check the log for more details");
36 call mtr.add_suppression("Timeout while waiting for the group communication engine to exit*.*");
37 call mtr.add_suppression("The member has failed to gracefully leave the group*.*");
38 SET SESSION sql_log_bin= 1;
39
40 SET @@GLOBAL.DEBUG='+d,group_replication_force_view_modification_timeout';
41 --error ER_GROUP_REPLICATION_CONFIGURATION
42 START GROUP_REPLICATION;
43
44 --let $group_replication_member_state= OFFLINE
45 --source include/gr_wait_for_member_state.inc
46
47 SET @@GLOBAL.DEBUG= @debug_save;
48 --source include/group_replication_end.inc