mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
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
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
#
|
|
# wsrep_sst_method
|
|
#
|
|
# save the initial value
|
|
SET @wsrep_sst_method_global_saved = @@global.wsrep_sst_method;
|
|
# default
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
rsync
|
|
|
|
# scope
|
|
SELECT @@session.wsrep_sst_method;
|
|
ERROR HY000: Variable 'wsrep_sst_method' is a GLOBAL variable
|
|
SET @@global.wsrep_sst_method=rsync;
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
rsync
|
|
|
|
# valid values
|
|
SET @@global.wsrep_sst_method=rsync;
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
rsync
|
|
SET @@global.wsrep_sst_method=mysqldump;
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
mysqldump
|
|
SET @@global.wsrep_sst_method=xtrabackup;
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
xtrabackup
|
|
SET @@global.wsrep_sst_method="xtrabackup-v2";
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
xtrabackup-v2
|
|
SET @@global.wsrep_sst_method="mariabackup";
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
mariabackup
|
|
SET @@global.wsrep_sst_method=default;
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
rsync
|
|
SET @@global.wsrep_sst_method='junk';
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
junk
|
|
|
|
# invalid values
|
|
SET @@global.wsrep_sst_method=NULL;
|
|
ERROR 42000: Variable 'wsrep_sst_method' can't be set to the value of 'NULL'
|
|
SELECT @@global.wsrep_sst_method;
|
|
@@global.wsrep_sst_method
|
|
junk
|
|
|
|
# restore the initial value
|
|
SET @@global.wsrep_sst_method = @wsrep_sst_method_global_saved;
|
|
# End of test
|