mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +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.
27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
--source include/have_innodb.inc
|
|
--source include/have_partition.inc
|
|
--source include/innodb_undo_tablespaces.inc
|
|
|
|
let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1;
|
|
|
|
--echo #
|
|
--echo # MDEV-18589 Assertion ...physical_size(flags) == info.page_size
|
|
--echo # failed in xb_delta_open_matching_space
|
|
--echo #
|
|
|
|
CREATE TABLE t (pk INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
|
|
|
|
--exec $XTRABACKUP --backup --target-dir=$basedir --protocol=tcp --port=$MASTER_MYPORT --user=root
|
|
|
|
ALTER TABLE t PARTITION BY KEY(pk);
|
|
|
|
--exec $XTRABACKUP --backup --target-dir=$incremental_dir --incremental-basedir=$basedir --protocol=tcp --port=$MASTER_MYPORT --user=root > $incremental_dir.log 2>&1
|
|
--exec $XTRABACKUP --prepare --target-dir=$basedir --user=root > $MYSQL_TMP_DIR/backup_prepare_0.log 2>&1
|
|
--exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir --user=root > $MYSQL_TMP_DIR/backup_prepare_1.log
|
|
--cat_file $MYSQL_TMP_DIR/backup_prepare_1.log
|
|
let $targetdir=$basedir;
|
|
-- source include/restart_and_restore.inc
|
|
|
|
SHOW CREATE TABLE t;
|
|
DROP TABLE t;
|