Debian Codegraph @

mysql-test/suite/group_replication/r/gr_switch_primary_timeout_client_disconnect.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. Start group in single primary mode.
8 # Server1 will be primary and server 2 secondary.
9 include/start_and_bootstrap_group_replication.inc
10 [connection server2]
11 include/start_group_replication.inc
12
13 # 2. Add a debug point to block the primary change on validation.
14 [connection server1]
15 SET @@GLOBAL.DEBUG= '+d,group_replication_block_primary_action_validation';
16
17 # 3. Start a primary change on server 1 using connection client_disconnect
18 [connection client_disconnect]
19 SELECT group_replication_set_as_primary("MEMBER2_UUID", 60);
20
21 # 4. Wait for the THD_transaction_monitor thread to start.
22 [connection server1]
23
24 # 5. Disconnect the client_disconnect connection.
25 # And signal the operation to run.
26 SET DEBUG_SYNC = "now SIGNAL signal.primary_action_continue";
27 SET @@GLOBAL.DEBUG= '-d,group_replication_block_primary_action_validation';
28
29 # 6. Check the monitor thread exited.
30 [connection server1]
31 include/gr_assert_secondary_member.inc
32 [connection server2]
33 include/gr_assert_primary_member.inc
34
35 # 7. Cleanup
36 include/group_replication_end.inc