1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00
Files
mariadb/mysql-test/suite/mariabackup/incremental_newdb_while_backup.result
Alexander Barkov 680ca15269 MDEV-28446 mariabackup prepare fails for incrementals if a new schema is created after full backup is taken
When "mariabackup --target-dir=$basedir --incremental-dir=$incremental_dir"
is running and is moving a new table file (e.g. `db1/t1.new`) from the
incremental directory to the base directory, it needs to verify that the base
backup database directory (e.g. `$basedir/db1`) really exists
(or create it otherwise).

The table `db1/t1` can come from a new database `db1` which
was created during the base mariabackup execution time.

In such case the directory `db1` exists only in the incremental directory,
but does not exist in the base directory.
2022-05-02 11:21:10 +04:00

25 lines
516 B
Plaintext

call mtr.add_suppression("InnoDB: New log files created");
#
# Start of 10.2 tests
#
#
# MDEV-28446 mariabackup prepare fails for incrementals if a new schema is created after full backup is taken
#
CREATE TABLE t1(i INT PRIMARY KEY) ENGINE INNODB;
# Prepare full backup, apply incremental one
# shutdown server
# remove datadir
# xtrabackup move back
# restart server
SELECT COUNT(*) FROM test.t1;
COUNT(*)
0
SELECT COUNT(*) FROM test1.t1;
COUNT(*)
10000
DROP TABLE t1;
DROP DATABASE test1;
#
# End of 10.2 tests
#