mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
dd20a43c6c
- Mariabackup fails to open the undo tablespaces while applying delta files to the corresponding data file. Mariabackup opens the undo tablespaces first time in srv_undo_tablespaces_init() and does tries to open the undo tablespaces in xtrabackup_apply_deltas() with conflicting mode and leads to the failure. - Mariabackup should close the undo tablespaces before applying the incremental delta files.
51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
--source include/have_debug.inc
|
|
--source include/innodb_undo_tablespaces.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;
|
|
CREATE TABLE t2(i INT PRIMARY KEY) ENGINE INNODB;
|
|
CREATE TABLE t3(i INT) ENGINE INNODB;
|
|
|
|
echo # Create full backup , modify table, then create incremental/differential backup;
|
|
--disable_result_log
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir;
|
|
--enable_result_log
|
|
|
|
create table t4(f1 int not null, f2 int not null)engine=innodb;
|
|
insert into t4 values(1, 2), (2, 2), (3, 3), (5, 5), (6, 6), (4, 4), (9, 9);
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
insert into t4 select * from t4;
|
|
rename table t4 to t7;
|
|
select count(*) from t7;
|
|
|
|
--echo # XTRABACKUP INCREMENTAL
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$incremental_dir --incremental-basedir=$basedir;
|
|
|
|
--echo # XTRABACKUP PREPARE
|
|
exec $XTRABACKUP --prepare --target-dir=$basedir;
|
|
|
|
--echo # XTRABACKUP INCREMENTAL PREPARE
|
|
exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir;
|
|
|
|
let $targetdir=$basedir;
|
|
-- source include/restart_and_restore.inc
|
|
--enable_result_log
|
|
|
|
select count(*) from t7;
|
|
drop table t1, t2, t7, t3;
|
|
|
|
# Cleanup
|
|
rmdir $basedir;
|
|
rmdir $incremental_dir;
|