MDEV-32050 Fixup

- Fixing mariabackup.full_backup test case
This commit is contained in:
Thirunarayanan Balathandayuthapani 2023-11-14 19:22:56 +05:30 committed by Marko Mäkelä
parent 583a745299
commit 804b5974f5
2 changed files with 17 additions and 0 deletions
mysql-test/suite/mariabackup

View file

@ -18,6 +18,12 @@ DROP TABLE t;
#
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
call mtr.add_suppression("InnoDB: Cannot change innodb_undo_tablespaces=0 because previous shutdown was not with innodb_fast_shutdown=0");
call mtr.add_suppression("Found 1 prepared XA transactions");
CREATE TABLE t(f1 INT NOT NULL)ENGINE=InnoDB;
XA START 'zombie';
INSERT INTO t VALUES(1);
XA END 'zombie';
XA PREPARE 'zombie';
# restart: --innodb_undo_tablespaces=0
# xtrabackup backup
# xtrabackup prepare
@ -28,3 +34,5 @@ call mtr.add_suppression("InnoDB: Cannot change innodb_undo_tablespaces=0 becaus
# Display undo log files from target directory
undo001
undo002
XA COMMIT 'zombie';
DROP TABLE t;

View file

@ -35,6 +35,13 @@ rmdir $targetdir;
--echo #
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces");
call mtr.add_suppression("InnoDB: Cannot change innodb_undo_tablespaces=0 because previous shutdown was not with innodb_fast_shutdown=0");
call mtr.add_suppression("Found 1 prepared XA transactions");
CREATE TABLE t(f1 INT NOT NULL)ENGINE=InnoDB;
XA START 'zombie';
INSERT INTO t VALUES(1);
XA END 'zombie';
XA PREPARE 'zombie';
let $restart_parameters=--innodb_undo_tablespaces=0;
--source include/restart_mysqld.inc
@ -53,4 +60,6 @@ exec $XTRABACKUP --prepare --target-dir=$targetdir;
--echo # Display undo log files from target directory
list_files $targetdir undo*;
XA COMMIT 'zombie';
DROP TABLE t;
rmdir $targetdir;