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
|
--source include/have_wsrep.inc
--source include/have_innodb.inc
--let $galera_version=26.4.14
source include/check_galera_version.inc;
#
# Test string option
#
select variable_type, global_value from information_schema.system_variables where variable_name = 'wsrep_provider_socket_recv_buf_size';
--error ER_WRONG_VALUE_FOR_VAR
set global wsrep_provider_socket_recv_buf_size = 'foo';
set global wsrep_provider_socket_recv_buf_size = '1M';
show global variables like 'wsrep_provider_socket_recv_buf_size';
set global wsrep_provider_socket_recv_buf_size = default;
show global variables like 'wsrep_provider_socket_recv_buf_size';
#
# Test integer option
#
select variable_type, global_value from information_schema.system_variables where variable_name = 'wsrep_provider_evs_send_window';
--error ER_WRONG_VALUE_FOR_VAR
set global wsrep_provider_evs_send_window = -10;
set global wsrep_provider_evs_send_window = 10;
show global variables like 'wsrep_provider_evs_send_window';
set global wsrep_provider_evs_send_window = default;
show global variables like 'wsrep_provider_evs_send_window';
#
# Test double option
#
select variable_type from information_schema.system_variables where variable_name = 'wsrep_provider_gcs_max_throttle';
--error ER_WRONG_VALUE_FOR_VAR
set global wsrep_provider_gcs_max_throttle = 1.1;
set global wsrep_provider_gcs_max_throttle = 0.5;
show global variables like 'wsrep_provider_gcs_max_throttle';
set global wsrep_provider_gcs_max_throttle = default;
show global variables like 'wsrep_provider_gcs_max_throttle';
#
# Test bool option
#
select variable_type from information_schema.system_variables where variable_name = 'wsrep_provider_cert_log_conflicts';
set global wsrep_provider_cert_log_conflicts = on;
show global variables like 'wsrep_provider_cert_log_conflicts';
set global wsrep_provider_cert_log_conflicts = off;
show global variables like 'wsrep_provider_cert_log_conflicts';
set global wsrep_provider_cert_log_conflicts = default;
show global variables like 'wsrep_provider_cert_log_conflicts';
#
# Test read-only option
#
select read_only from information_schema.system_variables where variable_name = 'wsrep_provider_evs_auto_evict';
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global wsrep_provider_evs_auto_evict = on;
#
# Test deprecated option (expect warning in result file)
#
set global wsrep_provider_gcs_fc_master_slave = default;
call mtr.add_suppression("error setting param");
call mtr.add_suppression("Unknown parameter");
call mtr.add_suppression("Setting parameter");
|