Debian Codegraph @

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

raw
1 include/group_replication.inc
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. Use the debug point "group_replication_block_group_action_stop" on server 1
8 SET @@GLOBAL.DEBUG= '+d,group_replication_block_group_action_stop';
9
10 # 2. Start a change to single primary mode on server 1
11 SELECT group_replication_switch_to_single_primary_mode("MEMBER1_UUID");
12
13 # 3. Wait for the stage to be: Primary Switch: waiting for operation to
14 # complete on all members
15 [connection server2]
16
17 # 4. Kill the query
18 [connection server_1]
19 SET DEBUG_SYNC = "now WAIT_FOR signal.action_stopping";
20 KILL QUERY CONNECTION_ID;
21
22 # 5. Unblock the debug point with "signal.action_stop_continue"
23 SET DEBUG_SYNC= "now SIGNAL signal.action_stop_continue";
24
25 # 6. Check the action returns successfully.
26 [connection server1]
27 group_replication_switch_to_single_primary_mode("MEMBER1_UUID")
28 Mode switched to single-primary successfully.
29 include/gr_assert_primary_member.inc
30 [connection server2]
31 include/gr_assert_secondary_member.inc
32
33 # 7. Cleanup
34 [connection server1]
35 SET @@GLOBAL.DEBUG= '-d,group_replication_block_group_action_stop';
36 SET DEBUG_SYNC='RESET';
37 include/group_replication_end.inc