Debian Codegraph @

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

raw
1 # ==== Purpose ====
2 #
3 # Verify that 'UNINSTALL PLUGIN' and 'STOP GROUP_REPLICATION' commands
4 # run well in parallel.
5 #
6 # ==== Implementation ====
7 #
8 # 1. Configure two servers to be members of a group.
9 # 2. Starts and bootstraps a group on the current server.
10 # 3. UNINSTALL PLUGIN group_replication and stop PLUGIN group_replication
11 # in parallel.
12 # 4. INSTALL PLUGIN group_replication.
13 # 5. Shut down Group Replication.
14 #
15 # ==== References ====
16 #
17 # Bug #23853388 CRASH WHILE DESTROYING A LOCKED MUTEX ON PARALLEL UNINSTALL AND START GR CMD
18
19 --source include/force_restart.inc
20 --source include/have_group_replication_plugin.inc
21 --let $rpl_skip_group_replication_start= 1
22 --source include/group_replication.inc
23
24 --let $rpl_connection_name= server1
25 --source include/rpl_connection.inc
26
27 SET SESSION sql_log_bin= 0;
28 call mtr.add_suppression("Group Replication plugin is not installed.");
29 SET SESSION sql_log_bin= 1;
30
31 --source include/start_and_bootstrap_group_replication.inc
32
33 ## Warnings depends upon sequence of execution of
34 ## query "STOP GROUP_REPLICATION" and "UNINSTALL PLUGIN group_replication"
35 --disable_warnings
36
37 --send UNINSTALL PLUGIN group_replication
38
39 --let $rpl_connection_name= server_1
40 --source include/rpl_connection.inc
41 --echo #
42 --echo # STOP GROUP_REPLICATION in parallel.
43 --echo #
44 ## Uninstall will not fail.
45 ## However, STOP GR may fail if UNINSTALL is executed first.
46 --error 0, ER_GROUP_REPLICATION_CONFIGURATION
47 STOP GROUP_REPLICATION;
48
49 --let $rpl_connection_name= server1
50 --source include/rpl_connection.inc
51 --reap
52
53 --enable_warnings
54
55 SET @@GLOBAL.read_only= 0;
56
57 --source include/install_group_replication_plugin.inc
58
59 --source include/group_replication_end.inc