Debian Codegraph @

mysql-test/suite/group_replication/r/gr_primary_mode_group_operations_23.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. Store uuid from server1 and set election weight to 50
8 SET @@GLOBAL.group_replication_member_weight= 50;
9
10 # 2. Store uuid from server2 and set election weight to 90
11 [connection server2]
12 SET @@GLOBAL.group_replication_member_weight= 90;
13
14 # 3. Execute action switch to single primary mode and confirm server2 is
15 # the primary
16 SELECT group_replication_switch_to_single_primary_mode();
17 group_replication_switch_to_single_primary_mode()
18 Mode switched to single-primary successfully.
19 include/gr_assert_primary_member.inc
20 [connection server1]
21 include/gr_assert_secondary_member.inc
22
23 # 4. Execute action switch to multiple primary mode
24 SELECT group_replication_switch_to_multi_primary_mode();
25 group_replication_switch_to_multi_primary_mode()
26 Mode switched to multi-primary successfully.
27 include/gr_assert_multi_primary_mode.inc
28
29 # 5. Set election weight on server2 to 50
30 [connection server2]
31 SET @@GLOBAL.group_replication_member_weight= 50;
32
33 # 6. Execute action switch to single primary mode
34 SELECT group_replication_switch_to_single_primary_mode();
35 group_replication_switch_to_single_primary_mode()
36 Mode switched to single-primary successfully.
37
38 # 7. Confirm server with lower lexical uuid is the new primary server
39 include/gr_assert_primary_member.inc
40 include/gr_assert_secondary_member.inc
41
42 # 8. Cleanup
43 include/group_replication_end.inc