Debian Codegraph @

mysql-test/suite/group_replication/r/gr_stop_wait_udf_finish.result

raw
1 include/group_replication.inc [rpl_server_count=2]
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. Activate debug point will block action after verify plugin isn't
8 # stopping
9 [connection server1]
10 set session sql_log_bin=0;
11 call mtr.add_suppression("The function 'group_replication_switch_to_single_primary_mode' failed. The group coordination process is terminating.");
12 set session sql_log_bin=1;
13 SET @debug_saved = @@GLOBAL.DEBUG;
14 SET @@GLOBAL.DEBUG='+d,group_replication_hold_udf_after_plugin_is_stopping';
15
16 # 2. Start action switch to single primary mode
17 SELECT group_replication_switch_to_single_primary_mode("MEMBER1_UUID");
18
19 # 3. Wait for action hit the debug point
20 [connection server_1_1]
21 SET DEBUG_SYNC= "now WAIT_FOR signal.group_replication_resume_udf";
22
23 # 4. STOP Group Replication on server1
24 STOP GROUP_REPLICATION;;
25 [connection server_1]
26
27 # 5. Wait for member state is OFFLINE
28 include/gr_wait_for_member_state.inc
29
30 # 6. To improve test but without adding more debug code, sleep to allow
31 # STOP Group Replication loop until UDF function finishes
32
33 # 7. Assert STOP GROUP_REPLICATION thread still runs
34 include/assert.inc ['There is a thread executing STOP GROUP_REPLICATION on server1']
35
36 # 8. Signal the action to continue
37 SET DEBUG_SYNC = "now SIGNAL signal.group_replication_resume_udf_continue";
38
39 # 9. Reap execution of action and confirm it failed
40 [connection server1]
41 ERROR HY000: Can't initialize function 'group_replication_switch_to_single_primary_mode'; Member must be ONLINE and in the majority partition.
42
43 # 10. Reap with success the execution of STOP GROUP_REPLICATION
44 [connection server_1_1]
45
46 # 11. Cleanup
47 SET @@GLOBAL.DEBUG= @debug_save;
48 include/group_replication_end.inc