File: gr_persist_only_variables.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (171 lines) | stat: -rw-r--r-- 12,743 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
include/group_replication.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection server1]

############################################################
# 0. Check that there are no persisted variables.
[connection server1]
include/assert.inc ['Expect 1 persisted variables.']

############################################################
# 1. Test SET PERSIST_ONLY. Verify persisted variables.
SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
SET GLOBAL group_replication_start_on_boot= ON;
SET GLOBAL group_replication_bootstrap_group= ON;
CREATE TABLE grvars (id INT PRIMARY KEY AUTO_INCREMENT, varname VARCHAR(64), varvalue VARCHAR(256));
INSERT INTO grvars (varname, varvalue)
SELECT * FROM performance_schema.global_variables
WHERE VARIABLE_NAME LIKE 'group_replication%'
 AND VARIABLE_NAME NOT LIKE 'group_replication_force_members'
 ORDER BY VARIABLE_NAME;

SET PERSIST_ONLY group_replication_advertise_recovery_endpoints = @@GLOBAL.group_replication_advertise_recovery_endpoints;
SET PERSIST_ONLY group_replication_allow_local_lower_version_join = @@GLOBAL.group_replication_allow_local_lower_version_join;
SET PERSIST_ONLY group_replication_auto_increment_increment = @@GLOBAL.group_replication_auto_increment_increment;
SET PERSIST_ONLY group_replication_autorejoin_tries = @@GLOBAL.group_replication_autorejoin_tries;
SET PERSIST_ONLY group_replication_bootstrap_group = @@GLOBAL.group_replication_bootstrap_group;
SET PERSIST_ONLY group_replication_clone_threshold = @@GLOBAL.group_replication_clone_threshold;
SET PERSIST_ONLY group_replication_communication_debug_options = @@GLOBAL.group_replication_communication_debug_options;
SET PERSIST_ONLY group_replication_communication_max_message_size = @@GLOBAL.group_replication_communication_max_message_size;
SET PERSIST_ONLY group_replication_communication_stack = @@GLOBAL.group_replication_communication_stack;
SET PERSIST_ONLY group_replication_components_stop_timeout = @@GLOBAL.group_replication_components_stop_timeout;
SET PERSIST_ONLY group_replication_compression_threshold = @@GLOBAL.group_replication_compression_threshold;
SET PERSIST_ONLY group_replication_consistency = @@GLOBAL.group_replication_consistency;
SET PERSIST_ONLY group_replication_enforce_update_everywhere_checks = @@GLOBAL.group_replication_enforce_update_everywhere_checks;
SET PERSIST_ONLY group_replication_exit_state_action = @@GLOBAL.group_replication_exit_state_action;
SET PERSIST_ONLY group_replication_flow_control_applier_threshold = @@GLOBAL.group_replication_flow_control_applier_threshold;
SET PERSIST_ONLY group_replication_flow_control_certifier_threshold = @@GLOBAL.group_replication_flow_control_certifier_threshold;
SET PERSIST_ONLY group_replication_flow_control_hold_percent = @@GLOBAL.group_replication_flow_control_hold_percent;
SET PERSIST_ONLY group_replication_flow_control_max_quota = @@GLOBAL.group_replication_flow_control_max_quota;
SET PERSIST_ONLY group_replication_flow_control_member_quota_percent = @@GLOBAL.group_replication_flow_control_member_quota_percent;
SET PERSIST_ONLY group_replication_flow_control_min_quota = @@GLOBAL.group_replication_flow_control_min_quota;
SET PERSIST_ONLY group_replication_flow_control_min_recovery_quota = @@GLOBAL.group_replication_flow_control_min_recovery_quota;
SET PERSIST_ONLY group_replication_flow_control_mode = @@GLOBAL.group_replication_flow_control_mode;
SET PERSIST_ONLY group_replication_flow_control_period = @@GLOBAL.group_replication_flow_control_period;
SET PERSIST_ONLY group_replication_flow_control_release_percent = @@GLOBAL.group_replication_flow_control_release_percent;
SET PERSIST_ONLY group_replication_group_name = @@GLOBAL.group_replication_group_name;
SET PERSIST_ONLY group_replication_group_seeds = @@GLOBAL.group_replication_group_seeds;
SET PERSIST_ONLY group_replication_gtid_assignment_block_size = @@GLOBAL.group_replication_gtid_assignment_block_size;
SET PERSIST_ONLY group_replication_ip_allowlist = @@GLOBAL.group_replication_ip_allowlist;
SET PERSIST_ONLY group_replication_ip_whitelist = @@GLOBAL.group_replication_ip_whitelist;
SET PERSIST_ONLY group_replication_local_address = @@GLOBAL.group_replication_local_address;
SET PERSIST_ONLY group_replication_member_expel_timeout = @@GLOBAL.group_replication_member_expel_timeout;
SET PERSIST_ONLY group_replication_member_weight = @@GLOBAL.group_replication_member_weight;
SET PERSIST_ONLY group_replication_message_cache_size = @@GLOBAL.group_replication_message_cache_size;
SET PERSIST_ONLY group_replication_paxos_single_leader = @@GLOBAL.group_replication_paxos_single_leader;
SET PERSIST_ONLY group_replication_poll_spin_loops = @@GLOBAL.group_replication_poll_spin_loops;
SET PERSIST_ONLY group_replication_recovery_complete_at = @@GLOBAL.group_replication_recovery_complete_at;
SET PERSIST_ONLY group_replication_recovery_compression_algorithms = @@GLOBAL.group_replication_recovery_compression_algorithms;
SET PERSIST_ONLY group_replication_recovery_get_public_key = @@GLOBAL.group_replication_recovery_get_public_key;
SET PERSIST_ONLY group_replication_recovery_public_key_path = @@GLOBAL.group_replication_recovery_public_key_path;
SET PERSIST_ONLY group_replication_recovery_reconnect_interval = @@GLOBAL.group_replication_recovery_reconnect_interval;
SET PERSIST_ONLY group_replication_recovery_retry_count = @@GLOBAL.group_replication_recovery_retry_count;
SET PERSIST_ONLY group_replication_recovery_ssl_ca = @@GLOBAL.group_replication_recovery_ssl_ca;
SET PERSIST_ONLY group_replication_recovery_ssl_capath = @@GLOBAL.group_replication_recovery_ssl_capath;
SET PERSIST_ONLY group_replication_recovery_ssl_cert = @@GLOBAL.group_replication_recovery_ssl_cert;
SET PERSIST_ONLY group_replication_recovery_ssl_cipher = @@GLOBAL.group_replication_recovery_ssl_cipher;
SET PERSIST_ONLY group_replication_recovery_ssl_crl = @@GLOBAL.group_replication_recovery_ssl_crl;
SET PERSIST_ONLY group_replication_recovery_ssl_crlpath = @@GLOBAL.group_replication_recovery_ssl_crlpath;
SET PERSIST_ONLY group_replication_recovery_ssl_key = @@GLOBAL.group_replication_recovery_ssl_key;
SET PERSIST_ONLY group_replication_recovery_ssl_verify_server_cert = @@GLOBAL.group_replication_recovery_ssl_verify_server_cert;
SET PERSIST_ONLY group_replication_recovery_tls_ciphersuites = @@GLOBAL.group_replication_recovery_tls_ciphersuites;
SET PERSIST_ONLY group_replication_recovery_tls_version = @@GLOBAL.group_replication_recovery_tls_version;
SET PERSIST_ONLY group_replication_recovery_use_ssl = @@GLOBAL.group_replication_recovery_use_ssl;
SET PERSIST_ONLY group_replication_recovery_zstd_compression_level = @@GLOBAL.group_replication_recovery_zstd_compression_level;
SET PERSIST_ONLY group_replication_single_primary_mode = @@GLOBAL.group_replication_single_primary_mode;
SET PERSIST_ONLY group_replication_ssl_mode = @@GLOBAL.group_replication_ssl_mode;
SET PERSIST_ONLY group_replication_start_on_boot = @@GLOBAL.group_replication_start_on_boot;
SET PERSIST_ONLY group_replication_tls_source = @@GLOBAL.group_replication_tls_source;
SET PERSIST_ONLY group_replication_transaction_size_limit = @@GLOBAL.group_replication_transaction_size_limit;
SET PERSIST_ONLY group_replication_unreachable_majority_timeout = @@GLOBAL.group_replication_unreachable_majority_timeout;
SET PERSIST_ONLY group_replication_view_change_uuid = @@GLOBAL.group_replication_view_change_uuid;

include/assert.inc ['Expect 60 persisted variables.']

############################################################
# 2. Restart server, it must bootstrap the group and preserve
#    the persisted settings. Verify persisted configuration.
# restart
include/rpl_reconnect.inc
include/gr_wait_for_member_state.inc

include/assert.inc ['Expect 60 persisted variables in persisted_variables table.']
include/assert.inc ['Expect 59 variables which last value was set through SET PERSIST.']
include/assert.inc ['Expect 50 persisted variables with matching persisted and global values.']

############################################################
# 3. Test RESET PERSIST IF EXISTS.
#    Verify that there are no persisted variables.
RESET PERSIST IF EXISTS group_replication_advertise_recovery_endpoints;
RESET PERSIST IF EXISTS group_replication_allow_local_lower_version_join;
RESET PERSIST IF EXISTS group_replication_auto_increment_increment;
RESET PERSIST IF EXISTS group_replication_autorejoin_tries;
RESET PERSIST IF EXISTS group_replication_bootstrap_group;
RESET PERSIST IF EXISTS group_replication_clone_threshold;
RESET PERSIST IF EXISTS group_replication_communication_debug_options;
RESET PERSIST IF EXISTS group_replication_communication_max_message_size;
RESET PERSIST IF EXISTS group_replication_communication_stack;
RESET PERSIST IF EXISTS group_replication_components_stop_timeout;
RESET PERSIST IF EXISTS group_replication_compression_threshold;
RESET PERSIST IF EXISTS group_replication_consistency;
RESET PERSIST IF EXISTS group_replication_enforce_update_everywhere_checks;
RESET PERSIST IF EXISTS group_replication_exit_state_action;
RESET PERSIST IF EXISTS group_replication_flow_control_applier_threshold;
RESET PERSIST IF EXISTS group_replication_flow_control_certifier_threshold;
RESET PERSIST IF EXISTS group_replication_flow_control_hold_percent;
RESET PERSIST IF EXISTS group_replication_flow_control_max_quota;
RESET PERSIST IF EXISTS group_replication_flow_control_member_quota_percent;
RESET PERSIST IF EXISTS group_replication_flow_control_min_quota;
RESET PERSIST IF EXISTS group_replication_flow_control_min_recovery_quota;
RESET PERSIST IF EXISTS group_replication_flow_control_mode;
RESET PERSIST IF EXISTS group_replication_flow_control_period;
RESET PERSIST IF EXISTS group_replication_flow_control_release_percent;
RESET PERSIST IF EXISTS group_replication_group_name;
RESET PERSIST IF EXISTS group_replication_group_seeds;
RESET PERSIST IF EXISTS group_replication_gtid_assignment_block_size;
RESET PERSIST IF EXISTS group_replication_ip_allowlist;
RESET PERSIST IF EXISTS group_replication_ip_whitelist;
RESET PERSIST IF EXISTS group_replication_local_address;
RESET PERSIST IF EXISTS group_replication_member_expel_timeout;
RESET PERSIST IF EXISTS group_replication_member_weight;
RESET PERSIST IF EXISTS group_replication_message_cache_size;
RESET PERSIST IF EXISTS group_replication_paxos_single_leader;
RESET PERSIST IF EXISTS group_replication_poll_spin_loops;
RESET PERSIST IF EXISTS group_replication_recovery_complete_at;
RESET PERSIST IF EXISTS group_replication_recovery_compression_algorithms;
RESET PERSIST IF EXISTS group_replication_recovery_get_public_key;
RESET PERSIST IF EXISTS group_replication_recovery_public_key_path;
RESET PERSIST IF EXISTS group_replication_recovery_reconnect_interval;
RESET PERSIST IF EXISTS group_replication_recovery_retry_count;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_ca;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_capath;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_cert;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_cipher;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_crl;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_crlpath;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_key;
RESET PERSIST IF EXISTS group_replication_recovery_ssl_verify_server_cert;
RESET PERSIST IF EXISTS group_replication_recovery_tls_ciphersuites;
RESET PERSIST IF EXISTS group_replication_recovery_tls_version;
RESET PERSIST IF EXISTS group_replication_recovery_use_ssl;
RESET PERSIST IF EXISTS group_replication_recovery_zstd_compression_level;
RESET PERSIST IF EXISTS group_replication_single_primary_mode;
RESET PERSIST IF EXISTS group_replication_ssl_mode;
RESET PERSIST IF EXISTS group_replication_start_on_boot;
RESET PERSIST IF EXISTS group_replication_tls_source;
RESET PERSIST IF EXISTS group_replication_transaction_size_limit;
RESET PERSIST IF EXISTS group_replication_unreachable_majority_timeout;
RESET PERSIST IF EXISTS group_replication_view_change_uuid;

include/assert.inc ['Expect 0 persisted variables.']

############################################################
# 4. Clean up.
SET GLOBAL group_replication_start_on_boot= OFF;
SET GLOBAL group_replication_bootstrap_group= OFF;
DROP TABLE grvars;
include/group_replication_end.inc
Warnings:
Warning	3615	Variable group_replication_ip_allowlist does not exist in persisted config file