File: gr_flow_control_options.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 (278 lines) | stat: -rw-r--r-- 19,202 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
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]
SET @group_replication_flow_control_mode_save= @@GLOBAL.group_replication_flow_control_mode;
SET @group_replication_flow_control_certifier_threshold_save= @@GLOBAL.group_replication_flow_control_certifier_threshold;
SET @group_replication_flow_control_applier_threshold_save= @@GLOBAL.group_replication_flow_control_applier_threshold;
SET @group_replication_flow_control_min_quota_save= @@GLOBAL.group_replication_flow_control_min_quota;
SET @group_replication_flow_control_min_recovery_quota_save= @@GLOBAL.group_replication_flow_control_min_recovery_quota;
SET @group_replication_flow_control_max_quota_save= @@GLOBAL.group_replication_flow_control_max_quota;
SET @group_replication_flow_control_member_quota_percent_save= @@GLOBAL.group_replication_flow_control_member_quota_percent;
SET @group_replication_flow_control_period_save= @@GLOBAL.group_replication_flow_control_period;
SET @group_replication_flow_control_hold_percent_save= @@GLOBAL.group_replication_flow_control_hold_percent;
SET @group_replication_flow_control_release_percent_save= @@GLOBAL.group_replication_flow_control_release_percent;
SET @debug_saved= @@GLOBAL.DEBUG;
SET @@GLOBAL.DEBUG= 'd,flow_control_simulate_delayed_members';
set session sql_log_bin=0;
CALL mtr.add_suppression("group_replication_flow_control_min_quota cannot be larger than group_replication_flow_control_max_quota");
CALL mtr.add_suppression("group_replication_flow_control_min_recovery_quota cannot be larger than group_replication_flow_control_max_quota");
CALL mtr.add_suppression("group_replication_flow_control_max_quota cannot be smaller than group_replication_flow_control_min_quota or group_replication_flow_control_min_recovery_quota");
set session sql_log_bin=1;

############################################################
# 1. Test group_replication_flow_control_mode option.
SET GLOBAL group_replication_flow_control_mode= "";
ERROR 42000: Variable 'group_replication_flow_control_mode' can't be set to the value of ''
SET GLOBAL group_replication_flow_control_mode= "XXX";
ERROR 42000: Variable 'group_replication_flow_control_mode' can't be set to the value of 'XXX'
SET GLOBAL group_replication_flow_control_mode= -1;
ERROR 42000: Variable 'group_replication_flow_control_mode' can't be set to the value of '-1'
SET GLOBAL group_replication_flow_control_mode= 2;
ERROR 42000: Variable 'group_replication_flow_control_mode' can't be set to the value of '2'
SET GLOBAL group_replication_flow_control_mode= DISABLED;
include/assert.inc [group_replication_flow_control_mode is correct]
SET GLOBAL group_replication_flow_control_mode= QUOTA;
include/assert.inc [group_replication_flow_control_mode is correct]
SET GLOBAL group_replication_flow_control_mode= 0;
include/assert.inc [group_replication_flow_control_mode is correct]
SET GLOBAL group_replication_flow_control_mode= 1;
include/assert.inc [group_replication_flow_control_mode is correct]

############################################################
# 2. Test group_replication_flow_control_certifier_threshold
#    option.
SET GLOBAL group_replication_flow_control_certifier_threshold= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_certifier_threshold'
SET GLOBAL group_replication_flow_control_certifier_threshold= -1;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_certifier_threshold value: '-1'
include/assert.inc [group_replication_flow_control_certifier_threshold is truncated]
SET GLOBAL group_replication_flow_control_certifier_threshold= 2147483648;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_certifier_threshold value: '2147483648'
include/assert.inc [group_replication_flow_control_certifier_threshold is truncated]
SET GLOBAL group_replication_flow_control_certifier_threshold= 1;
include/assert.inc [group_replication_flow_control_certifier_threshold is correct]
SET GLOBAL group_replication_flow_control_certifier_threshold= 2147483647;
include/assert.inc [group_replication_flow_control_certifier_threshold is correct]

############################################################
# 3. Test group_replication_flow_control_applier_threshold
#    option.
SET GLOBAL group_replication_flow_control_applier_threshold= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_applier_threshold'
SET GLOBAL group_replication_flow_control_applier_threshold= -1;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_applier_threshold value: '-1'
include/assert.inc [group_replication_flow_control_applier_threshold is truncated]
SET GLOBAL group_replication_flow_control_applier_threshold= 2147483648;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_applier_threshold value: '2147483648'
include/assert.inc [group_replication_flow_control_applier_threshold is truncated]
SET GLOBAL group_replication_flow_control_applier_threshold= 1;
include/assert.inc [group_replication_flow_control_applier_threshold is correct]
SET GLOBAL group_replication_flow_control_applier_threshold= 2147483647;
include/assert.inc [group_replication_flow_control_applier_threshold is correct]

############################################################
# 4. Test group_replication_flow_control_min_quota
#    option.
SET GLOBAL group_replication_flow_control_min_quota= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_min_quota'
SET GLOBAL group_replication_flow_control_min_quota= -1;
include/assert.inc [group_replication_flow_control_min_quota is truncated]
SET GLOBAL group_replication_flow_control_min_quota= 2147483648;
include/assert.inc [group_replication_flow_control_min_quota is truncated]
SET GLOBAL group_replication_flow_control_min_quota= 1;
include/assert.inc [group_replication_flow_control_min_quota is correct]
SET GLOBAL group_replication_flow_control_min_quota= 2147483647;
include/assert.inc [group_replication_flow_control_min_quota is correct]
SET GLOBAL group_replication_flow_control_min_quota= 0;

############################################################
# 5. Test group_replication_flow_control_min_recovery_quota
#    option.
SET GLOBAL group_replication_flow_control_min_recovery_quota= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_min_recovery_quota'
SET GLOBAL group_replication_flow_control_min_recovery_quota= -1;
include/assert.inc [group_replication_flow_control_min_recovery_quota is truncated]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 2147483648;
include/assert.inc [group_replication_flow_control_min_recovery_quota is truncated]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1;
include/assert.inc [group_replication_flow_control_min_recovery_quota is correct]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 2147483647;
include/assert.inc [group_replication_flow_control_min_recovery_quota is correct]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 0;

############################################################
# 6. Test group_replication_flow_control_max_quota
#    option.
SET GLOBAL group_replication_flow_control_max_quota= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_max_quota'
SET GLOBAL group_replication_flow_control_max_quota= -1;
include/assert.inc [group_replication_flow_control_max_quota is truncated]
SET GLOBAL group_replication_flow_control_max_quota= 2147483648;
include/assert.inc [group_replication_flow_control_max_quota is truncated]
SET GLOBAL group_replication_flow_control_max_quota= 1;
include/assert.inc [group_replication_flow_control_max_quota is correct]
SET GLOBAL group_replication_flow_control_max_quota= 2147483647;
include/assert.inc [group_replication_flow_control_max_quota is correct]
SET GLOBAL group_replication_flow_control_max_quota= 0;

############################################################
# 7. Test group_replication_flow_control_member_quota_percent
#    option.
SET GLOBAL group_replication_flow_control_member_quota_percent= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_member_quota_percent'
SET GLOBAL group_replication_flow_control_member_quota_percent= -1;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_member_quota_percent value: '-1'
include/assert.inc [group_replication_flow_control_member_quota_percent is truncated]
SET GLOBAL group_replication_flow_control_member_quota_percent= 101;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_member_quota_percent value: '101'
include/assert.inc [group_replication_flow_control_member_quota_percent is truncated]
SET GLOBAL group_replication_flow_control_member_quota_percent= 1;
include/assert.inc [group_replication_flow_control_member_quota_percent is correct]
SET GLOBAL group_replication_flow_control_member_quota_percent= 100;
include/assert.inc [group_replication_flow_control_member_quota_percent is correct]

############################################################
# 8. Test group_replication_flow_control_period option.
SET GLOBAL group_replication_flow_control_period= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_period'
SET GLOBAL group_replication_flow_control_period= 0;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_period value: '0'
include/assert.inc [group_replication_flow_control_period is truncated]
SET GLOBAL group_replication_flow_control_period= 61;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_period value: '61'
include/assert.inc [group_replication_flow_control_period is truncated]
SET GLOBAL group_replication_flow_control_period= 1;
include/assert.inc [group_replication_flow_control_period is correct]
SET GLOBAL group_replication_flow_control_period= 60;
include/assert.inc [group_replication_flow_control_period is correct]

############################################################
# 9. Test group_replication_flow_control_hold_percent
#    option.

SET GLOBAL group_replication_flow_control_hold_percent= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_hold_percent'
SET GLOBAL group_replication_flow_control_hold_percent= -1;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_hold_percent value: '-1'
include/assert.inc [group_replication_flow_control_hold_percent is truncated]
SET GLOBAL group_replication_flow_control_hold_percent= 101;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_hold_percent value: '101'
include/assert.inc [group_replication_flow_control_hold_percent is truncated]
SET GLOBAL group_replication_flow_control_hold_percent= 1;
include/assert.inc [group_replication_flow_control_hold_percent is correct]
SET GLOBAL group_replication_flow_control_hold_percent= 100;
include/assert.inc [group_replication_flow_control_hold_percent is correct]
############################################################
# 10. Test group_replication_flow_control_release_percent
#    option.
SET GLOBAL group_replication_flow_control_release_percent= "";
ERROR 42000: Incorrect argument type to variable 'group_replication_flow_control_release_percent'
SET GLOBAL group_replication_flow_control_release_percent= -1;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_release_percent value: '-1'
include/assert.inc [group_replication_flow_control_release_percent is truncated]
SET GLOBAL group_replication_flow_control_release_percent= 1001;
Warnings:
Warning	1292	Truncated incorrect group_replication_flow_control_release_percent value: '1001'
include/assert.inc [group_replication_flow_control_release_percent is truncated]
SET GLOBAL group_replication_flow_control_release_percent= 1;
include/assert.inc [group_replication_flow_control_release_percent is correct]
SET GLOBAL group_replication_flow_control_release_percent= 1000;
include/assert.inc [group_replication_flow_control_release_percent is correct]

############################################################
# 11. Test group_replication_flow_control_max_quota
#     option.
SET GLOBAL group_replication_flow_control_min_recovery_quota= 10;
SET GLOBAL group_replication_flow_control_min_quota= 10;
SET GLOBAL group_replication_flow_control_max_quota= 100;
SET GLOBAL group_replication_flow_control_min_quota= 1000;
ERROR 42000: group_replication_flow_control_min_quota cannot be larger than group_replication_flow_control_max_quota
include/assert.inc [group_replication_flow_control_min_quota cannot be larger than max_quota]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1000;
ERROR 42000: group_replication_flow_control_min_recovery_quota cannot be larger than group_replication_flow_control_max_quota
include/assert.inc [group_replication_flow_control_min_recovery_quota cannot be larger than max_quota]
SET GLOBAL group_replication_flow_control_max_quota= 1;
ERROR 42000: group_replication_flow_control_max_quota cannot be smaller than group_replication_flow_control_min_quota or group_replication_flow_control_min_recovery_quota
include/assert.inc [group_replication_flow_control_max_quota cannot be lower than min_quota or min_recovery_quota]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 0;
SET GLOBAL group_replication_flow_control_min_quota= 0;
SET GLOBAL group_replication_flow_control_max_quota= 0;

############################################################
# 12. Change all group_replication_flow_control options while
#    Group Replication is running.
include/start_and_bootstrap_group_replication.inc
SET GLOBAL group_replication_flow_control_mode= DISABLED;
include/assert.inc [group_replication_flow_control_mode is correct]
SET GLOBAL group_replication_flow_control_mode= QUOTA;
include/assert.inc [group_replication_flow_control_mode is correct]
SET GLOBAL group_replication_flow_control_certifier_threshold= 1000;
include/assert.inc [group_replication_flow_control_certifier_threshold is correct]
SET GLOBAL group_replication_flow_control_applier_threshold= 1000;
include/assert.inc [group_replication_flow_control_applier_threshold is correct]
SET GLOBAL group_replication_flow_control_min_quota= 1000;
include/assert.inc [group_replication_flow_control_min_quota is correct]
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1000;
include/assert.inc [group_replication_flow_control_min_recovery_quota is correct]
SET GLOBAL group_replication_flow_control_max_quota= 2000;
include/assert.inc [group_replication_flow_control_max_quota is correct]
SET GLOBAL group_replication_flow_control_member_quota_percent= 50;
include/assert.inc [group_replication_flow_control_member_quota_percent is correct]
SET GLOBAL group_replication_flow_control_period= 10;
include/assert.inc [group_replication_flow_control_period is correct]
SET GLOBAL group_replication_flow_control_hold_percent= 15;
include/assert.inc [group_replication_flow_control_hold_percent is correct]
SET GLOBAL group_replication_flow_control_release_percent= 150;
include/assert.inc [group_replication_flow_control_release_percent is correct]

############################################################
# 13. Set group_replication_flow_control options on command
#    line during server start and then start Group
#    Replication.
[connection server2]
include/start_group_replication.inc
set session sql_log_bin=0;
CALL mtr.add_suppression("group_replication_flow_control_min_quota cannot be larger than group_replication_flow_control_max_quota");
CALL mtr.add_suppression("group_replication_flow_control_min_recovery_quota cannot be larger than group_replication_flow_control_max_quota");
CALL mtr.add_suppression("group_replication_flow_control_max_quota cannot be smaller than group_replication_flow_control_min_quota or group_replication_flow_control_min_recovery_quota");
set session sql_log_bin=1;
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_flow_control_max_quota=10 --group_replication_flow_control_min_quota=20
START GROUP_REPLICATION;
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_flow_control_min_quota=20 --group_replication_flow_control_max_quota=10
START GROUP_REPLICATION;
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_flow_control_min_recovery_quota=20 --group_replication_flow_control_max_quota=10
START GROUP_REPLICATION;
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.

############################################################
# Clean up.
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS
include/rpl_reconnect.inc
[connection server1]
SET GLOBAL group_replication_flow_control_mode= @group_replication_flow_control_mode_save;
SET GLOBAL group_replication_flow_control_certifier_threshold= @group_replication_flow_control_certifier_threshold_save;
SET GLOBAL group_replication_flow_control_applier_threshold= @group_replication_flow_control_applier_threshold_save;
SET GLOBAL group_replication_flow_control_min_quota=@group_replication_flow_control_min_quota_save;
SET GLOBAL group_replication_flow_control_min_recovery_quota=@group_replication_flow_control_min_recovery_quota_save;
SET GLOBAL group_replication_flow_control_max_quota=@group_replication_flow_control_max_quota_save;
SET GLOBAL group_replication_flow_control_member_quota_percent=@group_replication_flow_control_member_quota_percent_save;
SET GLOBAL group_replication_flow_control_period=@group_replication_flow_control_period_save;
SET GLOBAL group_replication_flow_control_hold_percent=@group_replication_flow_control_hold_percent_save;
SET GLOBAL group_replication_flow_control_release_percent=@group_replication_flow_control_release_percent_save;
SET @@GLOBAL.DEBUG= @debug_saved;
include/group_replication_end.inc