Debian Codegraph @

mysql-test/suite/group_replication/r/gr_primary_mode_group_operations_22.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. Change to single primary mode
8 SELECT group_replication_switch_to_single_primary_mode("MEMBER1_UUID");
9 group_replication_switch_to_single_primary_mode("MEMBER1_UUID")
10 Mode switched to single-primary successfully.
11
12 # 2. Check all variables
13 [connection server1]
14 include/assert.inc [group_replication_enforce_update_everywhere_checks is ON]
15 include/assert.inc [The single primary mode should be 1 here.]
16 include/assert.inc [The super_read_only mode should be 0 here.]
17 [connection server2]
18 include/assert.inc [group_replication_enforce_update_everywhere_checks is ON]
19 include/assert.inc [The single primary mode should be 1 here.]
20 include/assert.inc [The super_read_only mode should be 1 here.]
21
22 # 3. Restart Group Replication on server 2. Check all
23 # goes as planned.
24 [connection server2]
25 include/stop_group_replication.inc
26 include/start_group_replication.inc
27 include/assert.inc [group_replication_enforce_update_everywhere_checks is ON]
28 include/assert.inc [The single primary mode should be 1 here.]
29 include/assert.inc [The super_read_only mode should be 1 here.]
30
31 # 4. Restart server 1. Don't pass the Primary mode settings. Check
32 # all goes as planned.
33 [connection server1]
34 # restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group-replication-group-name=GROUP_REPLICATION_GROUP_NAME
35 include/rpl_reconnect.inc
36 include/assert.inc [group_replication_enforce_update_everywhere_checks is ON]
37 include/assert.inc [The single primary mode should be 1 here.]
38 include/start_group_replication.inc
39 include/assert.inc [The super_read_only mode should be 1 here.]
40 include/group_replication_end.inc