Debian Codegraph @

mysql-test/suite/group_replication/r/gr_persist_variables.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 ############################################################
8 # 0. Check that there are no persisted variables.
9 [connection server1]
10 include/assert.inc ['Expect 1 persisted variables.']
11
12 ############################################################
13 # 1. Test SET PERSIST. Verify persisted variables.
14 SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
15 SET GLOBAL group_replication_start_on_boot= ON;
16 SET GLOBAL group_replication_bootstrap_group= ON;
17 CREATE TABLE grvars (id INT PRIMARY KEY AUTO_INCREMENT, varname VARCHAR(64), varvalue VARCHAR(256));
18 INSERT INTO grvars (varname, varvalue)
19 SELECT * FROM performance_schema.global_variables
20 WHERE VARIABLE_NAME LIKE '%group_replication%'
21 AND VARIABLE_NAME NOT LIKE 'group_replication_force_members'
22 ORDER BY VARIABLE_NAME;
23
24 SET PERSIST group_replication_advertise_recovery_endpoints = @@GLOBAL.group_replication_advertise_recovery_endpoints;
25 SET PERSIST group_replication_allow_local_lower_version_join = @@GLOBAL.group_replication_allow_local_lower_version_join;
26 SET PERSIST group_replication_auto_increment_increment = @@GLOBAL.group_replication_auto_increment_increment;
27 SET PERSIST group_replication_autorejoin_tries = @@GLOBAL.group_replication_autorejoin_tries;
28 SET PERSIST group_replication_bootstrap_group = @@GLOBAL.group_replication_bootstrap_group;
29 SET PERSIST group_replication_clone_threshold = @@GLOBAL.group_replication_clone_threshold;
30 SET PERSIST group_replication_communication_debug_options = @@GLOBAL.group_replication_communication_debug_options;
31 SET PERSIST group_replication_communication_max_message_size = @@GLOBAL.group_replication_communication_max_message_size;
32 SET PERSIST group_replication_communication_stack = @@GLOBAL.group_replication_communication_stack;
33 SET PERSIST group_replication_components_stop_timeout = @@GLOBAL.group_replication_components_stop_timeout;
34 SET PERSIST group_replication_compression_threshold = @@GLOBAL.group_replication_compression_threshold;
35 SET PERSIST group_replication_consistency = @@GLOBAL.group_replication_consistency;
36 SET PERSIST group_replication_enforce_update_everywhere_checks = @@GLOBAL.group_replication_enforce_update_everywhere_checks;
37 SET PERSIST group_replication_exit_state_action = @@GLOBAL.group_replication_exit_state_action;
38 SET PERSIST group_replication_flow_control_applier_threshold = @@GLOBAL.group_replication_flow_control_applier_threshold;
39 SET PERSIST group_replication_flow_control_certifier_threshold = @@GLOBAL.group_replication_flow_control_certifier_threshold;
40 SET PERSIST group_replication_flow_control_hold_percent = @@GLOBAL.group_replication_flow_control_hold_percent;
41 SET PERSIST group_replication_flow_control_max_quota = @@GLOBAL.group_replication_flow_control_max_quota;
42 SET PERSIST group_replication_flow_control_member_quota_percent = @@GLOBAL.group_replication_flow_control_member_quota_percent;
43 SET PERSIST group_replication_flow_control_min_quota = @@GLOBAL.group_replication_flow_control_min_quota;
44 SET PERSIST group_replication_flow_control_min_recovery_quota = @@GLOBAL.group_replication_flow_control_min_recovery_quota;
45 SET PERSIST group_replication_flow_control_mode = @@GLOBAL.group_replication_flow_control_mode;
46 SET PERSIST group_replication_flow_control_period = @@GLOBAL.group_replication_flow_control_period;
47 SET PERSIST group_replication_flow_control_release_percent = @@GLOBAL.group_replication_flow_control_release_percent;
48 SET PERSIST group_replication_group_name = @@GLOBAL.group_replication_group_name;
49 SET PERSIST group_replication_group_seeds = @@GLOBAL.group_replication_group_seeds;
50 SET PERSIST group_replication_gtid_assignment_block_size = @@GLOBAL.group_replication_gtid_assignment_block_size;
51 SET PERSIST group_replication_ip_allowlist = @@GLOBAL.group_replication_ip_allowlist;
52 SET PERSIST group_replication_ip_whitelist = @@GLOBAL.group_replication_ip_whitelist;
53 Warnings:
54 Warning 1287 'group_replication_ip_whitelist' is deprecated and will be removed in a future release. Please use group_replication_ip_allowlist instead
55 SET PERSIST group_replication_local_address = @@GLOBAL.group_replication_local_address;
56 SET PERSIST group_replication_member_expel_timeout = @@GLOBAL.group_replication_member_expel_timeout;
57 SET PERSIST group_replication_member_weight = @@GLOBAL.group_replication_member_weight;
58 SET PERSIST group_replication_message_cache_size = @@GLOBAL.group_replication_message_cache_size;
59 SET PERSIST group_replication_paxos_single_leader = @@GLOBAL.group_replication_paxos_single_leader;
60 SET PERSIST group_replication_poll_spin_loops = @@GLOBAL.group_replication_poll_spin_loops;
61 SET PERSIST group_replication_recovery_complete_at = @@GLOBAL.group_replication_recovery_complete_at;
62 Warnings:
63 Warning 1681 'group_replication_recovery_complete_at' is deprecated and will be removed in a future release.
64 SET PERSIST group_replication_recovery_compression_algorithms = @@GLOBAL.group_replication_recovery_compression_algorithms;
65 SET PERSIST group_replication_recovery_get_public_key = @@GLOBAL.group_replication_recovery_get_public_key;
66 SET PERSIST group_replication_recovery_public_key_path = @@GLOBAL.group_replication_recovery_public_key_path;
67 SET PERSIST group_replication_recovery_reconnect_interval = @@GLOBAL.group_replication_recovery_reconnect_interval;
68 SET PERSIST group_replication_recovery_retry_count = @@GLOBAL.group_replication_recovery_retry_count;
69 SET PERSIST group_replication_recovery_ssl_ca = @@GLOBAL.group_replication_recovery_ssl_ca;
70 SET PERSIST group_replication_recovery_ssl_capath = @@GLOBAL.group_replication_recovery_ssl_capath;
71 SET PERSIST group_replication_recovery_ssl_cert = @@GLOBAL.group_replication_recovery_ssl_cert;
72 SET PERSIST group_replication_recovery_ssl_cipher = @@GLOBAL.group_replication_recovery_ssl_cipher;
73 SET PERSIST group_replication_recovery_ssl_crl = @@GLOBAL.group_replication_recovery_ssl_crl;
74 SET PERSIST group_replication_recovery_ssl_crlpath = @@GLOBAL.group_replication_recovery_ssl_crlpath;
75 SET PERSIST group_replication_recovery_ssl_key = @@GLOBAL.group_replication_recovery_ssl_key;
76 SET PERSIST group_replication_recovery_ssl_verify_server_cert = @@GLOBAL.group_replication_recovery_ssl_verify_server_cert;
77 SET PERSIST group_replication_recovery_tls_ciphersuites = @@GLOBAL.group_replication_recovery_tls_ciphersuites;
78 SET PERSIST group_replication_recovery_tls_version = @@GLOBAL.group_replication_recovery_tls_version;
79 SET PERSIST group_replication_recovery_use_ssl = @@GLOBAL.group_replication_recovery_use_ssl;
80 SET PERSIST group_replication_recovery_zstd_compression_level = @@GLOBAL.group_replication_recovery_zstd_compression_level;
81 SET PERSIST group_replication_single_primary_mode = @@GLOBAL.group_replication_single_primary_mode;
82 SET PERSIST group_replication_ssl_mode = @@GLOBAL.group_replication_ssl_mode;
83 SET PERSIST group_replication_start_on_boot = @@GLOBAL.group_replication_start_on_boot;
84 SET PERSIST group_replication_tls_source = @@GLOBAL.group_replication_tls_source;
85 SET PERSIST group_replication_transaction_size_limit = @@GLOBAL.group_replication_transaction_size_limit;
86 SET PERSIST group_replication_unreachable_majority_timeout = @@GLOBAL.group_replication_unreachable_majority_timeout;
87 SET PERSIST group_replication_view_change_uuid = @@GLOBAL.group_replication_view_change_uuid;
88 Warnings:
89 Warning 1681 'group_replication_view_change_uuid' is deprecated and will be removed in a future release.
90
91 include/assert.inc ['Expect 60 persisted variables.']
92
93 ############################################################
94 # 2. Restart server, it must bootstrap the group and preserve
95 # the persisted settings. Verify persisted configuration.
96 # restart
97 include/rpl_reconnect.inc
98 include/gr_wait_for_member_state.inc
99
100 include/assert.inc ['Expect 60 persisted variables in persisted_variables table.']
101 include/assert.inc ['Expect 59 variables which last value was set through SET PERSIST.']
102 include/assert.inc ['Expect 59 variables which last value was set through SET PERSIST is equal to its global value.']
103
104 ############################################################
105 # 3. Test RESET PERSIST.
106 # Verify that there are no persisted variables.
107 RESET PERSIST group_replication_advertise_recovery_endpoints;
108 RESET PERSIST group_replication_allow_local_lower_version_join;
109 RESET PERSIST group_replication_auto_increment_increment;
110 RESET PERSIST group_replication_autorejoin_tries;
111 RESET PERSIST group_replication_bootstrap_group;
112 RESET PERSIST group_replication_clone_threshold;
113 RESET PERSIST group_replication_communication_debug_options;
114 RESET PERSIST group_replication_communication_max_message_size;
115 RESET PERSIST group_replication_communication_stack;
116 RESET PERSIST group_replication_components_stop_timeout;
117 RESET PERSIST group_replication_compression_threshold;
118 RESET PERSIST group_replication_consistency;
119 RESET PERSIST group_replication_enforce_update_everywhere_checks;
120 RESET PERSIST group_replication_exit_state_action;
121 RESET PERSIST group_replication_flow_control_applier_threshold;
122 RESET PERSIST group_replication_flow_control_certifier_threshold;
123 RESET PERSIST group_replication_flow_control_hold_percent;
124 RESET PERSIST group_replication_flow_control_max_quota;
125 RESET PERSIST group_replication_flow_control_member_quota_percent;
126 RESET PERSIST group_replication_flow_control_min_quota;
127 RESET PERSIST group_replication_flow_control_min_recovery_quota;
128 RESET PERSIST group_replication_flow_control_mode;
129 RESET PERSIST group_replication_flow_control_period;
130 RESET PERSIST group_replication_flow_control_release_percent;
131 RESET PERSIST group_replication_group_name;
132 RESET PERSIST group_replication_group_seeds;
133 RESET PERSIST group_replication_gtid_assignment_block_size;
134 RESET PERSIST group_replication_ip_allowlist;
135 RESET PERSIST group_replication_ip_whitelist;
136 RESET PERSIST group_replication_local_address;
137 RESET PERSIST group_replication_member_expel_timeout;
138 RESET PERSIST group_replication_member_weight;
139 RESET PERSIST group_replication_message_cache_size;
140 RESET PERSIST group_replication_paxos_single_leader;
141 RESET PERSIST group_replication_poll_spin_loops;
142 RESET PERSIST group_replication_recovery_complete_at;
143 RESET PERSIST group_replication_recovery_compression_algorithms;
144 RESET PERSIST group_replication_recovery_get_public_key;
145 RESET PERSIST group_replication_recovery_public_key_path;
146 RESET PERSIST group_replication_recovery_reconnect_interval;
147 RESET PERSIST group_replication_recovery_retry_count;
148 RESET PERSIST group_replication_recovery_ssl_ca;
149 RESET PERSIST group_replication_recovery_ssl_capath;
150 RESET PERSIST group_replication_recovery_ssl_cert;
151 RESET PERSIST group_replication_recovery_ssl_cipher;
152 RESET PERSIST group_replication_recovery_ssl_crl;
153 RESET PERSIST group_replication_recovery_ssl_crlpath;
154 RESET PERSIST group_replication_recovery_ssl_key;
155 RESET PERSIST group_replication_recovery_ssl_verify_server_cert;
156 RESET PERSIST group_replication_recovery_tls_ciphersuites;
157 RESET PERSIST group_replication_recovery_tls_version;
158 RESET PERSIST group_replication_recovery_use_ssl;
159 RESET PERSIST group_replication_recovery_zstd_compression_level;
160 RESET PERSIST group_replication_single_primary_mode;
161 RESET PERSIST group_replication_ssl_mode;
162 RESET PERSIST group_replication_start_on_boot;
163 RESET PERSIST group_replication_tls_source;
164 RESET PERSIST group_replication_transaction_size_limit;
165 RESET PERSIST group_replication_unreachable_majority_timeout;
166 RESET PERSIST group_replication_view_change_uuid;
167
168 include/assert.inc ['Expect 0 persisted variables.']
169
170 ############################################################
171 # 4. Clean up.
172 SET GLOBAL group_replication_start_on_boot= OFF;
173 SET GLOBAL group_replication_bootstrap_group= OFF;
174 DROP TABLE grvars;
175 include/group_replication_end.inc
176 Warnings:
177 Warning 3615 Variable group_replication_ip_allowlist does not exist in persisted config file