polardbxengine/mysql-test/suite/group_replication/r/gr_flow_control_options.result

278 lines
18 KiB
Plaintext

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 master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE 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_c 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_c 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_a 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_a 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_m 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_m 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_p 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_p 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_h 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_h 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_r 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_r 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.
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