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 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
|
################################################################################
# Verify that group_replication_flow_control options do behave as expected.
# 1. Test group_replication_flow_control_mode option.
# 2. Test group_replication_flow_control_certifier_threshold
# option.
# 3. Test group_replication_flow_control_applier_threshold
# option.
# 4. Change all group_replication_flow_control options while
# Group Replication is running.
# 5. Clean up.
################################################################################
--source include/have_debug.inc
--source include/have_group_replication_plugin.inc
--let $rpl_skip_group_replication_start= 1
--source include/group_replication.inc
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;
--echo
--echo ############################################################
--echo # 1. Test group_replication_flow_control_mode option.
# Invalid values
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL group_replication_flow_control_mode= "";
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL group_replication_flow_control_mode= "XXX";
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL group_replication_flow_control_mode= -1;
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL group_replication_flow_control_mode= 2;
# Valid values
SET GLOBAL group_replication_flow_control_mode= DISABLED;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "DISABLED"
--source include/assert.inc
SET GLOBAL group_replication_flow_control_mode= QUOTA;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "QUOTA"
--source include/assert.inc
SET GLOBAL group_replication_flow_control_mode= 0;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "DISABLED"
--source include/assert.inc
SET GLOBAL group_replication_flow_control_mode= 1;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "QUOTA"
--source include/assert.inc
--echo
--echo ############################################################
--echo # 2. Test group_replication_flow_control_certifier_threshold
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_certifier_threshold= "";
# Truncates values
SET GLOBAL group_replication_flow_control_certifier_threshold= -1;
--let $assert_text= group_replication_flow_control_certifier_threshold is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_certifier_threshold] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_certifier_threshold= 2147483648;
--let $assert_text= group_replication_flow_control_certifier_threshold is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_certifier_threshold] = 2147483647
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_certifier_threshold= 1;
--let $assert_text= group_replication_flow_control_certifier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_certifier_threshold] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_certifier_threshold= 2147483647;
--let $assert_text= group_replication_flow_control_certifier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_certifier_threshold] = 2147483647
--source include/assert.inc
--echo
--echo ############################################################
--echo # 3. Test group_replication_flow_control_applier_threshold
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_applier_threshold= "";
# Truncates values
SET GLOBAL group_replication_flow_control_applier_threshold= -1;
--let $assert_text= group_replication_flow_control_applier_threshold is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_applier_threshold] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_applier_threshold= 2147483648;
--let $assert_text= group_replication_flow_control_applier_threshold is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_applier_threshold] = 2147483647
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_applier_threshold= 1;
--let $assert_text= group_replication_flow_control_applier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_applier_threshold] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_applier_threshold= 2147483647;
--let $assert_text= group_replication_flow_control_applier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_applier_threshold] = 2147483647
--source include/assert.inc
--echo
--echo ############################################################
--echo # 4. Test group_replication_flow_control_min_quota
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_min_quota= "";
# Truncates values
SET GLOBAL group_replication_flow_control_min_quota= -1;
--let $assert_text= group_replication_flow_control_min_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_quota= 2147483648;
--let $assert_text= group_replication_flow_control_min_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 2147483647
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_min_quota= 1;
--let $assert_text= group_replication_flow_control_min_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_quota= 2147483647;
--let $assert_text= group_replication_flow_control_min_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 2147483647
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_quota= 0;
--echo
--echo ############################################################
--echo # 5. Test group_replication_flow_control_min_recovery_quota
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_min_recovery_quota= "";
# Truncates values
SET GLOBAL group_replication_flow_control_min_recovery_quota= -1;
--let $assert_text= group_replication_flow_control_min_recovery_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_recovery_quota= 2147483648;
--let $assert_text= group_replication_flow_control_min_recovery_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 2147483647
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1;
--let $assert_text= group_replication_flow_control_min_recovery_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_recovery_quota= 2147483647;
--let $assert_text= group_replication_flow_control_min_recovery_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 2147483647
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_recovery_quota= 0;
--echo
--echo ############################################################
--echo # 6. Test group_replication_flow_control_max_quota
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_max_quota= "";
# Truncates values
SET GLOBAL group_replication_flow_control_max_quota= -1;
--let $assert_text= group_replication_flow_control_max_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_max_quota= 2147483648;
--let $assert_text= group_replication_flow_control_max_quota is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 2147483647
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_max_quota= 1;
--let $assert_text= group_replication_flow_control_max_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_max_quota= 2147483647;
--let $assert_text= group_replication_flow_control_max_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 2147483647
--source include/assert.inc
SET GLOBAL group_replication_flow_control_max_quota= 0;
--echo
--echo ############################################################
--echo # 7. Test group_replication_flow_control_member_quota_percent
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_member_quota_percent= "";
# Truncates values
SET GLOBAL group_replication_flow_control_member_quota_percent= -1;
--let $assert_text= group_replication_flow_control_member_quota_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_member_quota_percent] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_member_quota_percent= 101;
--let $assert_text= group_replication_flow_control_member_quota_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_member_quota_percent] = 100
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_member_quota_percent= 1;
--let $assert_text= group_replication_flow_control_member_quota_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_member_quota_percent] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_member_quota_percent= 100;
--let $assert_text= group_replication_flow_control_member_quota_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_member_quota_percent] = 100
--source include/assert.inc
--echo
--echo ############################################################
--echo # 8. Test group_replication_flow_control_period option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_period= "";
# Truncates values
SET GLOBAL group_replication_flow_control_period= 0;
--let $assert_text= group_replication_flow_control_period is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_period] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_period= 61;
--let $assert_text= group_replication_flow_control_period is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_period] = 60
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_period= 1;
--let $assert_text= group_replication_flow_control_period is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_period] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_period= 60;
--let $assert_text= group_replication_flow_control_period is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_period] = 60
--source include/assert.inc
--echo
--echo ############################################################
--echo # 9. Test group_replication_flow_control_hold_percent
--echo # option.
--echo
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_hold_percent= "";
# Truncates values
SET GLOBAL group_replication_flow_control_hold_percent= -1;
--let $assert_text= group_replication_flow_control_hold_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_hold_percent] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_hold_percent= 101;
--let $assert_text= group_replication_flow_control_hold_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_hold_percent] = 100
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_hold_percent= 1;
--let $assert_text= group_replication_flow_control_hold_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_hold_percent] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_hold_percent= 100;
--let $assert_text= group_replication_flow_control_hold_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_hold_percent] = 100
--source include/assert.inc
--echo ############################################################
--echo # 10. Test group_replication_flow_control_release_percent
--echo # option.
# Invalid values
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL group_replication_flow_control_release_percent= "";
# Truncates values
SET GLOBAL group_replication_flow_control_release_percent= -1;
--let $assert_text= group_replication_flow_control_release_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_release_percent] = 0
--source include/assert.inc
SET GLOBAL group_replication_flow_control_release_percent= 1001;
--let $assert_text= group_replication_flow_control_release_percent is truncated
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_release_percent] = 1000
--source include/assert.inc
# Valid values
SET GLOBAL group_replication_flow_control_release_percent= 1;
--let $assert_text= group_replication_flow_control_release_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_release_percent] = 1
--source include/assert.inc
SET GLOBAL group_replication_flow_control_release_percent= 1000;
--let $assert_text= group_replication_flow_control_release_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_release_percent] = 1000
--source include/assert.inc
--echo
--echo ############################################################
--echo # 11. Test group_replication_flow_control_max_quota
--echo # 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;
--error 1231
SET GLOBAL group_replication_flow_control_min_quota= 1000;
--let $assert_text= group_replication_flow_control_min_quota cannot be larger than max_quota
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 10
--source include/assert.inc
--error 1231
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1000;
--let $assert_text= group_replication_flow_control_min_recovery_quota cannot be larger than max_quota
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 10
--source include/assert.inc
--error 1231
SET GLOBAL group_replication_flow_control_max_quota= 1;
--let $assert_text= group_replication_flow_control_max_quota cannot be lower than min_quota or min_recovery_quota
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 100
--source include/assert.inc
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;
--echo
--echo ############################################################
--echo # 12. Change all group_replication_flow_control options while
--echo # Group Replication is running.
--source include/start_and_bootstrap_group_replication.inc
SET GLOBAL group_replication_flow_control_mode= DISABLED;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "DISABLED"
--source include/assert.inc
SET GLOBAL group_replication_flow_control_mode= QUOTA;
--let $assert_text= group_replication_flow_control_mode is correct
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_flow_control_mode]" = "QUOTA"
--source include/assert.inc
SET GLOBAL group_replication_flow_control_certifier_threshold= 1000;
--let $assert_text= group_replication_flow_control_certifier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_certifier_threshold] = 1000
--source include/assert.inc
SET GLOBAL group_replication_flow_control_applier_threshold= 1000;
--let $assert_text= group_replication_flow_control_applier_threshold is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_applier_threshold] = 1000
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_quota= 1000;
--let $assert_text= group_replication_flow_control_min_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_quota] = 1000
--source include/assert.inc
SET GLOBAL group_replication_flow_control_min_recovery_quota= 1000;
--let $assert_text= group_replication_flow_control_min_recovery_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_min_recovery_quota] = 1000
--source include/assert.inc
SET GLOBAL group_replication_flow_control_max_quota= 2000;
--let $assert_text= group_replication_flow_control_max_quota is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_max_quota] = 2000
--source include/assert.inc
SET GLOBAL group_replication_flow_control_member_quota_percent= 50;
--let $assert_text= group_replication_flow_control_member_quota_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_member_quota_percent] = 50
--source include/assert.inc
SET GLOBAL group_replication_flow_control_period= 10;
--let $assert_text= group_replication_flow_control_period is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_period] = 10
--source include/assert.inc
SET GLOBAL group_replication_flow_control_hold_percent= 15;
--let $assert_text= group_replication_flow_control_hold_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_hold_percent] = 15
--source include/assert.inc
SET GLOBAL group_replication_flow_control_release_percent= 150;
--let $assert_text= group_replication_flow_control_release_percent is correct
--let $assert_cond= [SELECT @@GLOBAL.group_replication_flow_control_release_percent] = 150
--source include/assert.inc
--echo
--echo ############################################################
--echo # 13. Set group_replication_flow_control options on command
--echo # line during server start and then start Group
--echo # Replication.
--let $rpl_connection_name= server2
--source include/rpl_connection.inc
--source 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;
--let $_group_replication_local_address= `SELECT @@GLOBAL.group_replication_local_address`
--let $_group_replication_group_seeds= `SELECT @@GLOBAL.group_replication_group_seeds`
--let $allow_rpl_inited= 1
--let $restart_parameters=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
--replace_result $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS $group_replication_group_name GROUP_REPLICATION_GROUP_NAME
--source include/restart_mysqld.inc
--error ER_GROUP_REPLICATION_CONFIGURATION
START GROUP_REPLICATION;
--let $allow_rpl_inited= 1
--let $restart_parameters=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
--replace_result $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS $group_replication_group_name GROUP_REPLICATION_GROUP_NAME
--source include/restart_mysqld.inc
--error ER_GROUP_REPLICATION_CONFIGURATION
START GROUP_REPLICATION;
--let $allow_rpl_inited= 1
--let $restart_parameters=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
--replace_result $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS $group_replication_group_name GROUP_REPLICATION_GROUP_NAME
--source include/restart_mysqld.inc
--error ER_GROUP_REPLICATION_CONFIGURATION
START GROUP_REPLICATION;
--echo
--echo ############################################################
--echo # Clean up.
--let $allow_rpl_inited= 1
--let $restart_parameters=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
--replace_result $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS $group_replication_group_name GROUP_REPLICATION_GROUP_NAME
--source include/restart_mysqld.inc
--let $rpl_server_number= 2
--source include/rpl_reconnect.inc
--let $rpl_connection_name= server1
--source include/rpl_connection.inc
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;
--source include/group_replication_end.inc
|