Commit 7da0f30c authored by Alexander Barkov's avatar Alexander Barkov

MDEV-28446 mariabackup prepare fails for incrementals if a new schema is...

MDEV-28446 mariabackup prepare fails for incrementals if a new schema is created after full backup is taken

Adding a 10.6 specific test
parent a917be3e
call mtr.add_suppression("InnoDB: New log files created");
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
INSERT INTO t1 VALUES(0);
CREATE DATABASE test1;
CREATE TABLE test1.t1 (a INT) ENGINE=InnoDB;
INSERT INTO test1.t1 VALUES (1000);
# shutdown server
# remove datadir
# xtrabackup move back
# restart
SELECT * FROM t1;
i
0
SELECT * FROM test1.t1;
a
1000
DROP TABLE t1;
DROP DATABASE test1;
--source include/have_innodb.inc
call mtr.add_suppression("InnoDB: New log files created");
--let basedir=$MYSQLTEST_VARDIR/tmp/backup
--let incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
INSERT INTO t1 VALUES(0);
--disable_result_log
--exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$basedir
--enable_result_log
CREATE DATABASE test1;
CREATE TABLE test1.t1 (a INT) ENGINE=InnoDB;
INSERT INTO test1.t1 VALUES (1000);
--disable_result_log
--exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=2 --ftwrl-wait-timeout=5 --ftwrl-wait-threshold=300 --ftwrl-wait-query-type=all --target-dir=$incremental_dir --incremental-basedir=$basedir
--exec $XTRABACKUP --prepare --target-dir=$basedir
--exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir
--enable_result_log
--let $targetdir=$basedir
--source include/restart_and_restore.inc
--enable_result_log
SELECT * FROM t1;
SELECT * FROM test1.t1;
DROP TABLE t1;
DROP DATABASE test1;
--rmdir $basedir
--rmdir $incremental_dir
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