1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-31 08:42:45 +03:00
mariadb/mysql-test/suite/sys_vars/t/wsrep_sst_method_basic.test
Julius Goryavsky cadb6ac770 DEV-17835: Remove wsrep-sst-method=xtrabackup
The use of the xtrabackup and xtrabackup-v2 methods for SST
has been declared obsolete since version 10.2, now it cannot
be used because of the different redo log format. Accordingly,
we need to remove the xtrabackup-related scripts and dynamically
replace the call to xtrabackup[-v2] to the mariabackup (with a
corresponding warning in the log) when the server performs SST.

https://jira.mariadb.org/browse/MDEV-17835
2018-12-17 11:14:54 +01:00

53 lines
1.4 KiB
Plaintext

--source include/have_wsrep.inc
--echo #
--echo # wsrep_sst_method
--echo #
--echo # save the initial value
SET @wsrep_sst_method_global_saved = @@global.wsrep_sst_method;
--echo # default
SELECT @@global.wsrep_sst_method;
--echo
--echo # scope
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_sst_method;
SET @@global.wsrep_sst_method=rsync;
SELECT @@global.wsrep_sst_method;
--echo
--echo # valid values
SET @@global.wsrep_sst_method=rsync;
SELECT @@global.wsrep_sst_method;
SET @@global.wsrep_sst_method=mysqldump;
SELECT @@global.wsrep_sst_method;
# The xtrabackup and xtrabackup-v2 methods are obsolete,
# but we can still select them (they will be automatically
# replaced to mariabackup):
SET @@global.wsrep_sst_method=xtrabackup;
SELECT @@global.wsrep_sst_method;
SET @@global.wsrep_sst_method="xtrabackup-v2";
SELECT @@global.wsrep_sst_method;
SET @@global.wsrep_sst_method="mariabackup";
SELECT @@global.wsrep_sst_method;
SET @@global.wsrep_sst_method=default;
SELECT @@global.wsrep_sst_method;
# Its a valid name for an SST method
SET @@global.wsrep_sst_method='junk';
SELECT @@global.wsrep_sst_method;
--echo
--echo # invalid values
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_sst_method=NULL;
SELECT @@global.wsrep_sst_method;
--echo
--echo # restore the initial value
SET @@global.wsrep_sst_method = @wsrep_sst_method_global_saved;
--echo # End of test