Commit 9e6310e3 authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Jan Lindström

Fix MTR test wsrep.variables_debug

The test was changing variable wsrep_provider dynamically,
but wsrep_provider was recently made read-only.

followup for ce3a2a68
parent e4394cc5
--disable_query_log
--let $galera_have_debug_sync = `SELECT 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_debug_sync_waiters'`
--if ($galera_have_debug_sync) {
--skip Test requires Galera debug library with no debug_sync functionality
}
--enable_query_log
call mtr.add_suppression("WSREP: Initial position was provided by configuration or SST, avoiding override"); # Correct Galera library found
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
# MDEV#5534: mysql_tzinfo_to_sql generates wrong query
#
# Testing wsrep_replicate_myisam variable.
SELECT @@session.wsrep_replicate_myisam;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable
SELECT @@global.wsrep_replicate_myisam;
@@global.wsrep_replicate_myisam
0
SET SESSION wsrep_replicate_myisam= ON;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL wsrep_replicate_myisam= ON;
SET GLOBAL wsrep_replicate_myisam= OFF;
# #
# MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
# variables when using "_" # variables when using "_"
# #
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*"); CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment'; SHOW GLOBAL STATUS LIKE 'wsrep%';
Variable_name Value Variable_name Value
wsrep_local_state_uuid #
wsrep_protocol_version #
wsrep_last_committed #
wsrep_replicated #
wsrep_replicated_bytes #
wsrep_repl_keys #
wsrep_repl_keys_bytes #
wsrep_repl_data_bytes #
wsrep_repl_other_bytes #
wsrep_received #
wsrep_received_bytes #
wsrep_local_commits #
wsrep_local_cert_failures #
wsrep_local_replays #
wsrep_local_send_queue #
wsrep_local_send_queue_max #
wsrep_local_send_queue_min #
wsrep_local_send_queue_avg #
wsrep_local_recv_queue #
wsrep_local_recv_queue_max #
wsrep_local_recv_queue_min #
wsrep_local_recv_queue_avg #
wsrep_local_cached_downto #
wsrep_flow_control_paused_ns #
wsrep_flow_control_paused #
wsrep_flow_control_sent #
wsrep_flow_control_recv #
wsrep_flow_control_active #
wsrep_flow_control_requested #
wsrep_cert_deps_distance #
wsrep_apply_oooe #
wsrep_apply_oool #
wsrep_apply_window #
wsrep_commit_oooe #
wsrep_commit_oool #
wsrep_commit_window #
wsrep_local_state #
wsrep_local_state_comment # wsrep_local_state_comment #
# Should show nothing. wsrep_cert_index_size #
SHOW STATUS LIKE 'x'; wsrep_causal_reads #
Variable_name Value wsrep_cert_interval #
wsrep_open_transactions #
wsrep_open_connections #
wsrep_incoming_addresses #
wsrep_cluster_weight #
wsrep_desync_count #
wsrep_evs_delayed #
wsrep_evs_evict_list #
wsrep_evs_repl_latency #
wsrep_evs_state #
wsrep_gcomm_uuid #
wsrep_gmcast_segment #
wsrep_applier_thread_count #
wsrep_cluster_capabilities #
wsrep_cluster_conf_id #
wsrep_cluster_size #
wsrep_cluster_state_uuid #
wsrep_cluster_status #
wsrep_connected #
wsrep_local_bf_aborts #
wsrep_local_index #
wsrep_provider_capabilities #
wsrep_provider_name #
wsrep_provider_vendor #
wsrep_provider_version #
wsrep_ready #
wsrep_rollbacker_thread_count #
wsrep_thread_count #
SHOW STATUS LIKE 'wsrep_local_state_uuid'; SHOW GLOBAL STATUS LIKE 'wsrep_%';
Variable_name Value Variable_name Value
wsrep_local_state_uuid # wsrep_local_state_uuid #
wsrep_protocol_version #
SHOW STATUS LIKE 'wsrep_last_committed';
Variable_name Value
wsrep_last_committed # wsrep_last_committed #
wsrep_replicated #
# wsrep_replicated_bytes #
# MDEV#6206: wsrep_slave_threads subtracts from max_connections wsrep_repl_keys #
# wsrep_repl_keys_bytes #
call mtr.add_suppression("WSREP: Failed to get provider options"); wsrep_repl_data_bytes #
SELECT @@global.wsrep_provider; wsrep_repl_other_bytes #
@@global.wsrep_provider wsrep_received #
libgalera_smm.so wsrep_received_bytes #
SELECT @@global.wsrep_slave_threads; wsrep_local_commits #
@@global.wsrep_slave_threads wsrep_local_cert_failures #
1 wsrep_local_replays #
SELECT @@global.wsrep_cluster_address; wsrep_local_send_queue #
@@global.wsrep_cluster_address wsrep_local_send_queue_max #
gcomm:// wsrep_local_send_queue_min #
SELECT @@global.wsrep_on; wsrep_local_send_queue_avg #
@@global.wsrep_on wsrep_local_recv_queue #
1 wsrep_local_recv_queue_max #
SHOW STATUS LIKE 'threads_connected'; wsrep_local_recv_queue_min #
Variable_name Value wsrep_local_recv_queue_avg #
Threads_connected 1 wsrep_local_cached_downto #
SHOW STATUS LIKE 'wsrep_thread_count'; wsrep_flow_control_paused_ns #
Variable_name Value wsrep_flow_control_paused #
wsrep_thread_count 2 wsrep_flow_control_sent #
wsrep_flow_control_recv #
SELECT @@global.wsrep_provider; wsrep_flow_control_active #
@@global.wsrep_provider wsrep_flow_control_requested #
libgalera_smm.so wsrep_cert_deps_distance #
SELECT @@global.wsrep_cluster_address; wsrep_apply_oooe #
@@global.wsrep_cluster_address wsrep_apply_oool #
gcomm:// wsrep_apply_window #
SELECT @@global.wsrep_on; wsrep_commit_oooe #
@@global.wsrep_on wsrep_commit_oool #
1 wsrep_commit_window #
SHOW STATUS LIKE 'threads_connected'; wsrep_local_state #
wsrep_local_state_comment #
wsrep_cert_index_size #
wsrep_causal_reads #
wsrep_cert_interval #
wsrep_open_transactions #
wsrep_open_connections #
wsrep_incoming_addresses #
wsrep_cluster_weight #
wsrep_desync_count #
wsrep_evs_delayed #
wsrep_evs_evict_list #
wsrep_evs_repl_latency #
wsrep_evs_state #
wsrep_gcomm_uuid #
wsrep_gmcast_segment #
wsrep_applier_thread_count #
wsrep_cluster_capabilities #
wsrep_cluster_conf_id #
wsrep_cluster_size #
wsrep_cluster_state_uuid #
wsrep_cluster_status #
wsrep_connected #
wsrep_local_bf_aborts #
wsrep_local_index #
wsrep_provider_capabilities #
wsrep_provider_name #
wsrep_provider_vendor #
wsrep_provider_version #
wsrep_ready #
wsrep_rollbacker_thread_count #
wsrep_thread_count #
SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment';
Variable_name Value Variable_name Value
Threads_connected 1 wsrep_local_state_comment #
SHOW STATUS LIKE 'wsrep_thread_count'; # Should show nothing.
SHOW STATUS LIKE 'x';
Variable_name Value Variable_name Value
wsrep_thread_count 2
# Setting wsrep_cluster_address triggers the creation of
# applier/rollbacker threads.
# Wait for applier thread to get created 1.
# Wait for applier thread to get created 2.
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
EXPECT_2
2
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
libgalera_smm.so
SELECT @@global.wsrep_cluster_address; SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address @@global.wsrep_cluster_address
gcomm:// gcomm://
...@@ -101,38 +163,112 @@ Threads_connected 1 ...@@ -101,38 +163,112 @@ Threads_connected 1
SHOW STATUS LIKE 'wsrep_thread_count'; SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name Value Variable_name Value
wsrep_thread_count 2 wsrep_thread_count 2
# variables
SET @wsrep_slave_threads_saved= @@global.wsrep_slave_threads; SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SET GLOBAL wsrep_slave_threads= 10; EXPECT_49
# Wait for 9 applier threads to get created. 49
SELECT VARIABLE_VALUE AS EXPECT_10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count'; SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
EXPECT_10 EXPECT_49
10 49
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count'; SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
EXPECT_1 VARIABLE_NAME
1 WSREP_AUTO_INCREMENT_CONTROL
SELECT VARIABLE_VALUE AS EXPECT_11 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count'; WSREP_CAUSAL_READS
EXPECT_11 WSREP_CERTIFICATION_RULES
11 WSREP_CERTIFY_NONPK
SHOW STATUS LIKE 'threads_connected'; WSREP_CLUSTER_ADDRESS
Variable_name Value WSREP_CLUSTER_NAME
Threads_connected 1 WSREP_CONVERT_LOCK_TO_TRX
set wsrep_on=0; WSREP_DATA_HOME_DIR
set wsrep_on=1; WSREP_DBUG_OPTION
create user test@localhost; WSREP_DEBUG
connect con1,localhost,test; WSREP_DESYNC
set auto_increment_increment=10; WSREP_DIRTY_READS
set wsrep_on=0; WSREP_DRUPAL_282555_WORKAROUND
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation WSREP_FORCED_BINLOG_FORMAT
disconnect con1; WSREP_GTID_DOMAIN_ID
connection default; WSREP_GTID_MODE
drop user test@localhost; WSREP_IGNORE_APPLY_ERRORS
# WSREP_LOAD_DATA_SPLITTING
# MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash WSREP_LOG_CONFLICTS
# WSREP_MAX_WS_ROWS
SET @wsrep_sst_auth_saved= @@global.wsrep_sst_auth; WSREP_MAX_WS_SIZE
SET @@global.wsrep_sst_auth= 'user:pass'; WSREP_MYSQL_REPLICATION_BUNDLE
SET @@global.wsrep_sst_auth= ''; WSREP_NODE_ADDRESS
SET @@global.wsrep_sst_auth= NULL; WSREP_NODE_INCOMING_ADDRESS
SET @@global.wsrep_sst_auth= @wsrep_sst_auth_saved; WSREP_NODE_NAME
# End of test. WSREP_NOTIFY_CMD
WSREP_ON
WSREP_OSU_METHOD
WSREP_PATCH_VERSION
WSREP_PROVIDER
WSREP_PROVIDER_OPTIONS
WSREP_RECOVER
WSREP_REJECT_QUERIES
WSREP_REPLICATE_MYISAM
WSREP_RESTART_SLAVE
WSREP_RETRY_AUTOCOMMIT
WSREP_SLAVE_FK_CHECKS
WSREP_SLAVE_THREADS
WSREP_SLAVE_UK_CHECKS
WSREP_SR_STORE
WSREP_SST_AUTH
WSREP_SST_DONOR
WSREP_SST_DONOR_REJECTS_QUERIES
WSREP_SST_METHOD
WSREP_SST_RECEIVE_ADDRESS
WSREP_START_POSITION
WSREP_SYNC_WAIT
WSREP_TRX_FRAGMENT_SIZE
WSREP_TRX_FRAGMENT_UNIT
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
VARIABLE_NAME
WSREP_AUTO_INCREMENT_CONTROL
WSREP_CAUSAL_READS
WSREP_CERTIFICATION_RULES
WSREP_CERTIFY_NONPK
WSREP_CLUSTER_ADDRESS
WSREP_CLUSTER_NAME
WSREP_CONVERT_LOCK_TO_TRX
WSREP_DATA_HOME_DIR
WSREP_DBUG_OPTION
WSREP_DEBUG
WSREP_DESYNC
WSREP_DIRTY_READS
WSREP_DRUPAL_282555_WORKAROUND
WSREP_FORCED_BINLOG_FORMAT
WSREP_GTID_DOMAIN_ID
WSREP_GTID_MODE
WSREP_IGNORE_APPLY_ERRORS
WSREP_LOAD_DATA_SPLITTING
WSREP_LOG_CONFLICTS
WSREP_MAX_WS_ROWS
WSREP_MAX_WS_SIZE
WSREP_MYSQL_REPLICATION_BUNDLE
WSREP_NODE_ADDRESS
WSREP_NODE_INCOMING_ADDRESS
WSREP_NODE_NAME
WSREP_NOTIFY_CMD
WSREP_ON
WSREP_OSU_METHOD
WSREP_PATCH_VERSION
WSREP_PROVIDER
WSREP_PROVIDER_OPTIONS
WSREP_RECOVER
WSREP_REJECT_QUERIES
WSREP_REPLICATE_MYISAM
WSREP_RESTART_SLAVE
WSREP_RETRY_AUTOCOMMIT
WSREP_SLAVE_FK_CHECKS
WSREP_SLAVE_THREADS
WSREP_SLAVE_UK_CHECKS
WSREP_SR_STORE
WSREP_SST_AUTH
WSREP_SST_DONOR
WSREP_SST_DONOR_REJECTS_QUERIES
WSREP_SST_METHOD
WSREP_SST_RECEIVE_ADDRESS
WSREP_START_POSITION
WSREP_SYNC_WAIT
WSREP_TRX_FRAGMENT_SIZE
WSREP_TRX_FRAGMENT_UNIT
call mtr.add_suppression("WSREP: Initial position was provided by configuration or SST, avoiding override"); # Correct Galera library found
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
# MDEV#5534: mysql_tzinfo_to_sql generates wrong query
#
# Testing wsrep_replicate_myisam variable.
SELECT @@session.wsrep_replicate_myisam;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable
SELECT @@global.wsrep_replicate_myisam;
@@global.wsrep_replicate_myisam
0
SET SESSION wsrep_replicate_myisam= ON;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL wsrep_replicate_myisam= ON;
SET GLOBAL wsrep_replicate_myisam= OFF;
SET GLOBAL wsrep_provider=none;
# #
# MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
# variables when using "_" # variables when using "_"
...@@ -66,7 +50,15 @@ wsrep_cert_interval # ...@@ -66,7 +50,15 @@ wsrep_cert_interval #
wsrep_open_transactions # wsrep_open_transactions #
wsrep_open_connections # wsrep_open_connections #
wsrep_incoming_addresses # wsrep_incoming_addresses #
wsrep_cluster_weight #
wsrep_debug_sync_waiters # wsrep_debug_sync_waiters #
wsrep_desync_count #
wsrep_evs_delayed #
wsrep_evs_evict_list #
wsrep_evs_repl_latency #
wsrep_evs_state #
wsrep_gcomm_uuid #
wsrep_gmcast_segment #
wsrep_applier_thread_count # wsrep_applier_thread_count #
wsrep_cluster_capabilities # wsrep_cluster_capabilities #
wsrep_cluster_conf_id # wsrep_cluster_conf_id #
...@@ -130,7 +122,15 @@ wsrep_cert_interval # ...@@ -130,7 +122,15 @@ wsrep_cert_interval #
wsrep_open_transactions # wsrep_open_transactions #
wsrep_open_connections # wsrep_open_connections #
wsrep_incoming_addresses # wsrep_incoming_addresses #
wsrep_cluster_weight #
wsrep_debug_sync_waiters # wsrep_debug_sync_waiters #
wsrep_desync_count #
wsrep_evs_delayed #
wsrep_evs_evict_list #
wsrep_evs_repl_latency #
wsrep_evs_state #
wsrep_gcomm_uuid #
wsrep_gmcast_segment #
wsrep_applier_thread_count # wsrep_applier_thread_count #
wsrep_cluster_capabilities # wsrep_cluster_capabilities #
wsrep_cluster_conf_id # wsrep_cluster_conf_id #
...@@ -153,73 +153,6 @@ wsrep_local_state_comment # ...@@ -153,73 +153,6 @@ wsrep_local_state_comment #
# Should show nothing. # Should show nothing.
SHOW STATUS LIKE 'x'; SHOW STATUS LIKE 'x';
Variable_name Value Variable_name Value
SET GLOBAL wsrep_provider=none;
SHOW STATUS LIKE 'wsrep_local_state_uuid';
Variable_name Value
wsrep_local_state_uuid #
SHOW STATUS LIKE 'wsrep_last_committed';
Variable_name Value
wsrep_last_committed #
SET GLOBAL wsrep_provider=none;
#
# MDEV#6206: wsrep_slave_threads subtracts from max_connections
#
call mtr.add_suppression("WSREP: Failed to get provider options");
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
libgalera_smm.so
SELECT @@global.wsrep_slave_threads;
@@global.wsrep_slave_threads
1
SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address
SELECT @@global.wsrep_on;
@@global.wsrep_on
1
SHOW STATUS LIKE 'threads_connected';
Variable_name Value
Threads_connected 1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name Value
wsrep_thread_count 0
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
libgalera_smm.so
SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address
SELECT @@global.wsrep_on;
@@global.wsrep_on
1
SHOW STATUS LIKE 'threads_connected';
Variable_name Value
Threads_connected 1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name Value
wsrep_thread_count 0
# Setting wsrep_cluster_address triggers the creation of
# applier/rollbacker threads.
SET GLOBAL wsrep_cluster_address= 'gcomm://';
# Wait for applier thread to get created 1.
# Wait for applier thread to get created 2.
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
EXPECT_2
2
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
libgalera_smm.so
SELECT @@global.wsrep_cluster_address; SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address @@global.wsrep_cluster_address
gcomm:// gcomm://
...@@ -232,47 +165,112 @@ Threads_connected 1 ...@@ -232,47 +165,112 @@ Threads_connected 1
SHOW STATUS LIKE 'wsrep_thread_count'; SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name Value Variable_name Value
wsrep_thread_count 2 wsrep_thread_count 2
# variables
SET @wsrep_slave_threads_saved= @@global.wsrep_slave_threads; SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SET GLOBAL wsrep_slave_threads= 10; EXPECT_49
# Wait for 9 applier threads to get created. 49
SELECT VARIABLE_VALUE AS EXPECT_10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count'; SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
EXPECT_10 EXPECT_49
10 49
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count'; SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
EXPECT_1 VARIABLE_NAME
1 WSREP_AUTO_INCREMENT_CONTROL
SELECT VARIABLE_VALUE AS EXPECT_11 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count'; WSREP_CAUSAL_READS
EXPECT_11 WSREP_CERTIFICATION_RULES
11 WSREP_CERTIFY_NONPK
SHOW STATUS LIKE 'threads_connected'; WSREP_CLUSTER_ADDRESS
Variable_name Value WSREP_CLUSTER_NAME
Threads_connected 1 WSREP_CONVERT_LOCK_TO_TRX
set wsrep_on=0; WSREP_DATA_HOME_DIR
set wsrep_on=1; WSREP_DBUG_OPTION
create user test@localhost; WSREP_DEBUG
connect con1,localhost,test; WSREP_DESYNC
set auto_increment_increment=10; WSREP_DIRTY_READS
set wsrep_on=0; WSREP_DRUPAL_282555_WORKAROUND
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation WSREP_FORCED_BINLOG_FORMAT
disconnect con1; WSREP_GTID_DOMAIN_ID
connection default; WSREP_GTID_MODE
drop user test@localhost; WSREP_IGNORE_APPLY_ERRORS
# WSREP_LOAD_DATA_SPLITTING
# MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash WSREP_LOG_CONFLICTS
# WSREP_MAX_WS_ROWS
SET @wsrep_sst_auth_saved= @@global.wsrep_sst_auth; WSREP_MAX_WS_SIZE
SET @@global.wsrep_sst_auth= 'user:pass'; WSREP_MYSQL_REPLICATION_BUNDLE
SELECT @@global.wsrep_sst_auth; WSREP_NODE_ADDRESS
@@global.wsrep_sst_auth WSREP_NODE_INCOMING_ADDRESS
******** WSREP_NODE_NAME
SET @@global.wsrep_sst_auth= ''; WSREP_NOTIFY_CMD
SELECT @@global.wsrep_sst_auth; WSREP_ON
@@global.wsrep_sst_auth WSREP_OSU_METHOD
WSREP_PATCH_VERSION
SET @@global.wsrep_sst_auth= NULL; WSREP_PROVIDER
SELECT @@global.wsrep_sst_auth; WSREP_PROVIDER_OPTIONS
@@global.wsrep_sst_auth WSREP_RECOVER
NULL WSREP_REJECT_QUERIES
SET @@global.wsrep_sst_auth= @wsrep_sst_auth_saved; WSREP_REPLICATE_MYISAM
# End of test. WSREP_RESTART_SLAVE
WSREP_RETRY_AUTOCOMMIT
WSREP_SLAVE_FK_CHECKS
WSREP_SLAVE_THREADS
WSREP_SLAVE_UK_CHECKS
WSREP_SR_STORE
WSREP_SST_AUTH
WSREP_SST_DONOR
WSREP_SST_DONOR_REJECTS_QUERIES
WSREP_SST_METHOD
WSREP_SST_RECEIVE_ADDRESS
WSREP_START_POSITION
WSREP_SYNC_WAIT
WSREP_TRX_FRAGMENT_SIZE
WSREP_TRX_FRAGMENT_UNIT
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
VARIABLE_NAME
WSREP_AUTO_INCREMENT_CONTROL
WSREP_CAUSAL_READS
WSREP_CERTIFICATION_RULES
WSREP_CERTIFY_NONPK
WSREP_CLUSTER_ADDRESS
WSREP_CLUSTER_NAME
WSREP_CONVERT_LOCK_TO_TRX
WSREP_DATA_HOME_DIR
WSREP_DBUG_OPTION
WSREP_DEBUG
WSREP_DESYNC
WSREP_DIRTY_READS
WSREP_DRUPAL_282555_WORKAROUND
WSREP_FORCED_BINLOG_FORMAT
WSREP_GTID_DOMAIN_ID
WSREP_GTID_MODE
WSREP_IGNORE_APPLY_ERRORS
WSREP_LOAD_DATA_SPLITTING
WSREP_LOG_CONFLICTS
WSREP_MAX_WS_ROWS
WSREP_MAX_WS_SIZE
WSREP_MYSQL_REPLICATION_BUNDLE
WSREP_NODE_ADDRESS
WSREP_NODE_INCOMING_ADDRESS
WSREP_NODE_NAME
WSREP_NOTIFY_CMD
WSREP_ON
WSREP_OSU_METHOD
WSREP_PATCH_VERSION
WSREP_PROVIDER
WSREP_PROVIDER_OPTIONS
WSREP_RECOVER
WSREP_REJECT_QUERIES
WSREP_REPLICATE_MYISAM
WSREP_RESTART_SLAVE
WSREP_RETRY_AUTOCOMMIT
WSREP_SLAVE_FK_CHECKS
WSREP_SLAVE_THREADS
WSREP_SLAVE_UK_CHECKS
WSREP_SR_STORE
WSREP_SST_AUTH
WSREP_SST_DONOR
WSREP_SST_DONOR_REJECTS_QUERIES
WSREP_SST_METHOD
WSREP_SST_RECEIVE_ADDRESS
WSREP_START_POSITION
WSREP_SYNC_WAIT
WSREP_TRX_FRAGMENT_SIZE
WSREP_TRX_FRAGMENT_UNIT
--source include/have_wsrep.inc --source include/have_wsrep.inc
--source include/force_restart.inc --source include/force_restart.inc
--source include/have_innodb.inc --source include/have_innodb.inc
--source include/galera_no_debug_sync.inc
call mtr.add_suppression("WSREP: Initial position was provided by configuration or SST, avoiding override"); --let $galera_version=26.4.8
source ../../wsrep/include/check_galera_version.inc;
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
--echo
--echo # MDEV#5534: mysql_tzinfo_to_sql generates wrong query
--echo #
--echo # Testing wsrep_replicate_myisam variable.
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_replicate_myisam;
SELECT @@global.wsrep_replicate_myisam;
--error ER_GLOBAL_VARIABLE
SET SESSION wsrep_replicate_myisam= ON;
SET GLOBAL wsrep_replicate_myisam= ON;
# Reset it back.
SET GLOBAL wsrep_replicate_myisam= OFF;
#SET GLOBAL wsrep_provider=none;
--echo # --echo #
--echo # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of --echo # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
...@@ -31,118 +13,27 @@ SET GLOBAL wsrep_replicate_myisam= OFF; ...@@ -31,118 +13,27 @@ SET GLOBAL wsrep_replicate_myisam= OFF;
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*"); CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
#evalp SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--replace_column 2 # --replace_column 2 #
SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment'; SHOW GLOBAL STATUS LIKE 'wsrep%';
--echo # Should show nothing.
SHOW STATUS LIKE 'x';
# Reset it back.
#SET GLOBAL wsrep_provider=none;
#evalp SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
# The following 2 variables are used by mariabackup
# SST.
--echo
--replace_column 2 #
SHOW STATUS LIKE 'wsrep_local_state_uuid';
--echo --echo
--replace_column 2 # --replace_column 2 #
SHOW STATUS LIKE 'wsrep_last_committed'; SHOW GLOBAL STATUS LIKE 'wsrep_%';
# Reset it back.
#SET GLOBAL wsrep_provider=none;
--echo
--echo #
--echo # MDEV#6206: wsrep_slave_threads subtracts from max_connections
--echo #
call mtr.add_suppression("WSREP: Failed to get provider options");
#evalp SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--replace_regex /.*libgalera.*smm.*/libgalera_smm.so/
SELECT @@global.wsrep_provider;
SELECT @@global.wsrep_slave_threads;
SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count';
--echo
#evalp SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--replace_regex /.*libgalera.*smm.*/libgalera_smm.so/ --replace_column 2 #
SELECT @@global.wsrep_provider; SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment';
SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count';
--echo
--echo # Setting wsrep_cluster_address triggers the creation of
--echo # applier/rollbacker threads.
#SET GLOBAL wsrep_cluster_address= 'gcomm://';
--echo # Wait for applier thread to get created 1.
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
--source include/wait_condition.inc
--echo # Wait for applier thread to get created 2.
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
--source include/wait_condition.inc
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count'; --echo # Should show nothing.
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count'; SHOW STATUS LIKE 'x';
SELECT VARIABLE_VALUE AS EXPECT_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
--replace_regex /.*libgalera.*smm.*/libgalera_smm.so/
SELECT @@global.wsrep_provider;
SELECT @@global.wsrep_cluster_address; SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on; SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected'; SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count'; SHOW STATUS LIKE 'wsrep_thread_count';
--echo
SET @wsrep_slave_threads_saved= @@global.wsrep_slave_threads;
SET GLOBAL wsrep_slave_threads= 10;
--echo # Wait for 9 applier threads to get created.
--let $wait_condition = SELECT VARIABLE_VALUE = 10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
--source include/wait_condition.inc
SELECT VARIABLE_VALUE AS EXPECT_10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_11 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
SHOW STATUS LIKE 'threads_connected';
#
# privileges for wsrep_on
#
set wsrep_on=0;
set wsrep_on=1;
--source include/wait_until_connected_again.inc
create user test@localhost;
connect con1,localhost,test;
set auto_increment_increment=10;
--error ER_SPECIFIC_ACCESS_DENIED_ERROR
set wsrep_on=0;
disconnect con1;
connection default;
drop user test@localhost;
--echo #
--echo # MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash
--echo #
SET @wsrep_sst_auth_saved= @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= 'user:pass';
SET @@global.wsrep_sst_auth= '';
SET @@global.wsrep_sst_auth= NULL;
SET @@global.wsrep_sst_auth= @wsrep_sst_auth_saved;
--source include/galera_wait_ready.inc --echo # variables
--echo # End of test. SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
--source include/have_wsrep.inc --source include/have_wsrep.inc
--source include/force_restart.inc --source include/force_restart.inc
--source include/have_innodb.inc --source include/have_innodb.inc
--source include/have_debug.inc
--source include/have_debug_sync.inc
--source include/galera_have_debug_sync.inc --source include/galera_have_debug_sync.inc
call mtr.add_suppression("WSREP: Initial position was provided by configuration or SST, avoiding override"); --let $galera_version=26.4.8
source ../../wsrep/include/check_galera_version.inc;
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
--echo
--echo # MDEV#5534: mysql_tzinfo_to_sql generates wrong query
--echo #
--echo # Testing wsrep_replicate_myisam variable.
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_replicate_myisam;
SELECT @@global.wsrep_replicate_myisam;
--error ER_GLOBAL_VARIABLE
SET SESSION wsrep_replicate_myisam= ON;
SET GLOBAL wsrep_replicate_myisam= ON;
# Reset it back.
SET GLOBAL wsrep_replicate_myisam= OFF;
SET GLOBAL wsrep_provider=none;
--echo # --echo #
--echo # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of --echo # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
...@@ -32,10 +15,6 @@ SET GLOBAL wsrep_provider=none; ...@@ -32,10 +15,6 @@ SET GLOBAL wsrep_provider=none;
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*"); CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
--disable_query_log
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--enable_query_log
--replace_column 2 # --replace_column 2 #
SHOW GLOBAL STATUS LIKE 'wsrep%'; SHOW GLOBAL STATUS LIKE 'wsrep%';
...@@ -49,128 +28,14 @@ SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment'; ...@@ -49,128 +28,14 @@ SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment';
--echo # Should show nothing. --echo # Should show nothing.
SHOW STATUS LIKE 'x'; SHOW STATUS LIKE 'x';
# Reset it back.
SET GLOBAL wsrep_provider=none;
--disable_query_log
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--enable_query_log
# The following 2 variables are used by mariabackup
# SST.
--echo
--replace_column 2 #
SHOW STATUS LIKE 'wsrep_local_state_uuid';
--echo
--replace_column 2 #
SHOW STATUS LIKE 'wsrep_last_committed';
# Reset it back.
SET GLOBAL wsrep_provider=none;
--echo
--echo #
--echo # MDEV#6206: wsrep_slave_threads subtracts from max_connections
--echo #
call mtr.add_suppression("WSREP: Failed to get provider options");
--disable_query_log
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--enable_query_log
--replace_regex /.*libgalera_smm.*/libgalera_smm.so/
SELECT @@global.wsrep_provider;
SELECT @@global.wsrep_slave_threads;
SELECT @@global.wsrep_cluster_address; SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on; SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected'; SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count'; SHOW STATUS LIKE 'wsrep_thread_count';
--echo
--disable_query_log
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--enable_query_log
--replace_regex /.*libgalera_smm.*/libgalera_smm.so/
SELECT @@global.wsrep_provider;
SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count';
--echo
--echo # Setting wsrep_cluster_address triggers the creation of
--echo # applier/rollbacker threads.
SET GLOBAL wsrep_cluster_address= 'gcomm://';
--echo # Wait for applier thread to get created 1.
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
--source include/wait_condition.inc
--echo # Wait for applier thread to get created 2.
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
--source include/wait_condition.inc
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
--replace_regex /.*libgalera_smm.*/libgalera_smm.so/
SELECT @@global.wsrep_provider;
SELECT @@global.wsrep_cluster_address;
SELECT @@global.wsrep_on;
SHOW STATUS LIKE 'threads_connected';
SHOW STATUS LIKE 'wsrep_thread_count';
--echo
SET @wsrep_slave_threads_saved= @@global.wsrep_slave_threads;
SET GLOBAL wsrep_slave_threads= 10;
--echo # Wait for 9 applier threads to get created.
--let $wait_condition = SELECT VARIABLE_VALUE = 10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
--source include/wait_condition.inc
SELECT VARIABLE_VALUE AS EXPECT_10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
SELECT VARIABLE_VALUE AS EXPECT_11 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
SHOW STATUS LIKE 'threads_connected';
#
# privileges for wsrep_on
#
set wsrep_on=0;
set wsrep_on=1;
--source include/wait_until_connected_again.inc
create user test@localhost;
connect con1,localhost,test;
set auto_increment_increment=10;
--error ER_SPECIFIC_ACCESS_DENIED_ERROR
set wsrep_on=0;
disconnect con1;
connection default;
drop user test@localhost;
--echo #
--echo # MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash
--echo #
SET @wsrep_sst_auth_saved= @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= 'user:pass';
SELECT @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= '';
SELECT @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= NULL;
SELECT @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= @wsrep_sst_auth_saved;
# Reset (for mtr internal checks)
--disable_query_log
SET GLOBAL wsrep_slave_threads= @wsrep_slave_threads_saved;
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
SET GLOBAL wsrep_cluster_address= @wsrep_cluster_address_saved;
SET GLOBAL wsrep_provider_options= @wsrep_provider_options_saved;
--enable_query_log
--source include/galera_wait_ready.inc --echo # variables
--echo # End of test. SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SELECT COUNT(*) AS EXPECT_49 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%";
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "wsrep%" ORDER BY VARIABLE_NAME;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment