| 1 |
--source include/have_innodb.inc |
| 2 |
|
| 3 |
# |
| 4 |
# MDEV-13499: Backing up table that "doesn't exist in engine" cause crash in mariabackup when using encryption |
| 5 |
# |
| 6 |
create table t1(c1 int) engine=InnoDB; |
| 7 |
INSERT INTO t1 VALUES(1); |
| 8 |
let MYSQLD_DATADIR=`select @@datadir`; |
| 9 |
|
| 10 |
--disable_query_log |
| 11 |
call mtr.add_suppression("InnoDB: Cannot open datafile for read-only: '.*test.t1\.ibd'"); |
| 12 |
call mtr.add_suppression('InnoDB: (Operating system error number|Error number \\d+ means)'); |
| 13 |
call mtr.add_suppression('InnoDB: The error means the system cannot find the path specified\.'); |
| 14 |
call mtr.add_suppression('InnoDB: Table test/t1 in the InnoDB data dictionary has tablespace id .*, but tablespace with that id or name does not exist'); |
| 15 |
call mtr.add_suppression('InnoDB: Ignoring tablespace for test/t1 because it could not be opened\.'); |
| 16 |
--enable_query_log |
| 17 |
|
| 18 |
--source include/shutdown_mysqld.inc |
| 19 |
|
| 20 |
--remove_file $MYSQLD_DATADIR/test/t1.ibd |
| 21 |
|
| 22 |
--source include/start_mysqld.inc |
| 23 |
|
| 24 |
echo # xtrabackup backup; |
| 25 |
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; |
| 26 |
--disable_result_log |
| 27 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$targetdir; |
| 28 |
--enable_result_log |
| 29 |
|
| 30 |
rmdir $targetdir; |
| 31 |
|
| 32 |
--error ER_GET_ERRNO |
| 33 |
select * from t1; |
| 34 |
drop table t1; |