mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@ -11,7 +11,3 @@
|
||||
##############################################################################
|
||||
|
||||
|
||||
mdev_6832: wsrep_provider is read-only for security reasons
|
||||
MDEV-23092: wsrep_provider is read-only for security reasons
|
||||
wsrep_variables_no_provider: wsrep_provider is read-only for security reasons
|
||||
MDEV-22443: it is no longer allowed enable wsrep_on if wsrep_provider is 'none'
|
||||
|
@ -1,3 +0,0 @@
|
||||
SET SESSION wsrep_sync_wait=15;
|
||||
SET SESSION wsrep_on=1;
|
||||
START TRANSACTION READ WRITE;
|
@ -1,13 +0,0 @@
|
||||
SET COLLATION_CONNECTION='utf16le_bin';
|
||||
SET GLOBAL wsrep_provider='/invalid/path/libgalera_smm.so';
|
||||
ERROR 42000: Variable 'wsrep_provider' can't be set to the value of '/'
|
||||
SET GLOBAL wsrep_cluster_address='OFF';
|
||||
SET GLOBAL wsrep_slave_threads=10;
|
||||
SELECT 1;
|
||||
1
|
||||
1
|
||||
SET GLOBAL wsrep_cluster_address='gcomm://';
|
||||
SET GLOBAL wsrep_slave_threads=DEFAULT;
|
||||
CALL mtr.add_suppression("wsrep_load()");
|
||||
CALL mtr.add_suppression("Failed to create a new provider");
|
||||
CALL mtr.add_suppression("Failed to load provider");
|
@ -1,11 +0,0 @@
|
||||
#
|
||||
# MDEV-6832: ER_LOCK_WAIT_TIMEOUT on SHOW STATUS
|
||||
#
|
||||
SHOW STATUS LIKE 'wsrep_ready';
|
||||
Variable_name Value
|
||||
wsrep_ready ON
|
||||
SHOW STATUS LIKE 'wsrep_ready';
|
||||
Variable_name Value
|
||||
wsrep_ready OFF
|
||||
SET @@global.wsrep_cluster_address='gcomm://';
|
||||
# End of test.
|
@ -1,44 +0,0 @@
|
||||
SELECT @@wsrep_on;
|
||||
@@wsrep_on
|
||||
1
|
||||
SET @wsrep_slave_threads_global_saved = @@global.wsrep_slave_threads;
|
||||
SET @wsrep_debug_saved = @@global.wsrep_debug;
|
||||
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
|
||||
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
|
||||
SET GLOBAL wsrep_provider=none;
|
||||
SET SESSION wsrep_trx_fragment_size=DEFAULT;
|
||||
ERROR HY000: Incorrect arguments to SET
|
||||
SELECT @@session.wsrep_trx_fragment_size;
|
||||
@@session.wsrep_trx_fragment_size
|
||||
0
|
||||
SET GLOBAL wsrep_start_position='12345678-1234-1234-1234-123456789012:100';
|
||||
ERROR 42000: Variable 'wsrep_start_position' can't be set to the value of '12345678-1234-1234-1234-123456789012:100'
|
||||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Warning 1231 Cannot set 'wsrep_start_position' because wsrep is switched off or provider is not loaded
|
||||
Error 1231 Variable 'wsrep_start_position' can't be set to the value of '12345678-1234-1234-1234-123456789012:100'
|
||||
SELECT @@global.wsrep_start_position;
|
||||
@@global.wsrep_start_position
|
||||
00000000-0000-0000-0000-000000000000:-1
|
||||
SET GLOBAL wsrep_debug=1;
|
||||
Warnings:
|
||||
Warning 1231 Setting 'wsrep_debug' has no effect because wsrep is switched off
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
NONE
|
||||
SET GLOBAL wsrep_slave_threads=5;
|
||||
SELECT @@global.wsrep_slave_threads;
|
||||
@@global.wsrep_slave_threads
|
||||
5
|
||||
SET GLOBAL wsrep_desync=1;
|
||||
ERROR HY000: WSREP (galera) not started
|
||||
SELECT @@global.wsrep_desync;
|
||||
@@global.wsrep_desync
|
||||
0
|
||||
SET SESSION wsrep_trx_fragment_unit='rows';
|
||||
ERROR HY000: Incorrect arguments to SET
|
||||
SELECT @@session.wsrep_trx_fragment_unit;
|
||||
@@session.wsrep_trx_fragment_unit
|
||||
rows
|
||||
SET @@global.wsrep_slave_threads = @wsrep_slave_threads_global_saved;
|
||||
SET @@global.wsrep_debug = @wsrep_debug_saved;
|
@ -1,8 +0,0 @@
|
||||
!include ../my.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-on=OFF
|
||||
binlog-format=ROW
|
||||
wsrep-provider=none
|
||||
wsrep-cluster-address='gcomm://'
|
||||
innodb_autoinc_lock_mode=2
|
@ -1,12 +0,0 @@
|
||||
#
|
||||
# MDEV-22443: terminate called after throwing an instance of
|
||||
# 'wsrep::runtime_error' in std::terminate on START TRANSACTION
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_wsrep.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
|
||||
SET SESSION wsrep_sync_wait=15;
|
||||
SET SESSION wsrep_on=1;
|
||||
START TRANSACTION READ WRITE;
|
@ -1,8 +0,0 @@
|
||||
!include ../my.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-on=OFF
|
||||
binlog-format=ROW
|
||||
wsrep-provider=none
|
||||
wsrep-cluster-address='gcomm://'
|
||||
innodb_autoinc_lock_mode=2
|
@ -1,22 +0,0 @@
|
||||
#
|
||||
# MDEV-23092: SIGABRT in wsrep::server_state::provider when setting
|
||||
# invalid wsrep_provider (on optimized builds)
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_wsrep.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
|
||||
SET COLLATION_CONNECTION='utf16le_bin';
|
||||
--error 1231
|
||||
SET GLOBAL wsrep_provider='/invalid/path/libgalera_smm.so';
|
||||
SET GLOBAL wsrep_cluster_address='OFF';
|
||||
SET GLOBAL wsrep_slave_threads=10;
|
||||
SELECT 1;
|
||||
|
||||
SET GLOBAL wsrep_cluster_address='gcomm://';
|
||||
SET GLOBAL wsrep_slave_threads=DEFAULT;
|
||||
|
||||
CALL mtr.add_suppression("wsrep_load()");
|
||||
CALL mtr.add_suppression("Failed to create a new provider");
|
||||
CALL mtr.add_suppression("Failed to load provider");
|
@ -1,7 +0,0 @@
|
||||
!include ../my.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-on=ON
|
||||
wsrep-provider=@ENV.WSREP_PROVIDER
|
||||
wsrep-cluster-address=gcomm://
|
||||
|
@ -1,17 +0,0 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_wsrep_provider.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-6832: ER_LOCK_WAIT_TIMEOUT on SHOW STATUS
|
||||
--echo #
|
||||
|
||||
SHOW STATUS LIKE 'wsrep_ready';
|
||||
--disable_query_log
|
||||
eval SET @@global.wsrep_provider='$WSREP_PROVIDER';
|
||||
--enable_query_log
|
||||
SHOW STATUS LIKE 'wsrep_ready';
|
||||
SET @@global.wsrep_cluster_address='gcomm://';
|
||||
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
|
||||
--source include/wait_condition.inc
|
||||
--echo # End of test.
|
@ -1,12 +0,0 @@
|
||||
# Use default setting for mysqld processes
|
||||
!include include/default_mysqld.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-on=ON
|
||||
binlog-format=ROW
|
||||
wsrep-provider=@ENV.WSREP_PROVIDER
|
||||
wsrep-cluster-address='gcomm://'
|
||||
#galera_port=@OPT.port
|
||||
#ist_port=@OPT.port
|
||||
#sst_port=@OPT.port
|
||||
|
@ -1,38 +0,0 @@
|
||||
--source include/have_wsrep.inc
|
||||
--source include/have_innodb.inc
|
||||
|
||||
SELECT @@wsrep_on;
|
||||
|
||||
SET @wsrep_slave_threads_global_saved = @@global.wsrep_slave_threads;
|
||||
SET @wsrep_debug_saved = @@global.wsrep_debug;
|
||||
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
|
||||
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;
|
||||
|
||||
SET GLOBAL wsrep_provider=none;
|
||||
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
SET SESSION wsrep_trx_fragment_size=DEFAULT;
|
||||
SELECT @@session.wsrep_trx_fragment_size;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET GLOBAL wsrep_start_position='12345678-1234-1234-1234-123456789012:100';
|
||||
SHOW WARNINGS;
|
||||
SELECT @@global.wsrep_start_position;
|
||||
SET GLOBAL wsrep_debug=1;
|
||||
SELECT @@global.wsrep_debug;
|
||||
SET GLOBAL wsrep_slave_threads=5;
|
||||
SELECT @@global.wsrep_slave_threads;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
SET GLOBAL wsrep_desync=1;
|
||||
SELECT @@global.wsrep_desync;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
SET SESSION wsrep_trx_fragment_unit='rows';
|
||||
SELECT @@session.wsrep_trx_fragment_unit;
|
||||
|
||||
--disable_query_log
|
||||
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;
|
||||
--source include/galera_wait_ready.inc
|
||||
SET @@global.wsrep_slave_threads = @wsrep_slave_threads_global_saved;
|
||||
SET @@global.wsrep_debug = @wsrep_debug_saved;
|
||||
--enable_query_log
|
Reference in New Issue
Block a user