Commit 804b5974 authored by Thirunarayanan Balathandayuthapani's avatar Thirunarayanan Balathandayuthapani Committed by Marko Mäkelä

MDEV-32050 Fixup

- Fixing mariabackup.full_backup test case
parent 583a7452
...@@ -18,6 +18,12 @@ DROP TABLE t; ...@@ -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: 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("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 # restart: --innodb_undo_tablespaces=0
# xtrabackup backup # xtrabackup backup
# xtrabackup prepare # xtrabackup prepare
...@@ -28,3 +34,5 @@ call mtr.add_suppression("InnoDB: Cannot change innodb_undo_tablespaces=0 becaus ...@@ -28,3 +34,5 @@ call mtr.add_suppression("InnoDB: Cannot change innodb_undo_tablespaces=0 becaus
# Display undo log files from target directory # Display undo log files from target directory
undo001 undo001
undo002 undo002
XA COMMIT 'zombie';
DROP TABLE t;
...@@ -35,6 +35,13 @@ rmdir $targetdir; ...@@ -35,6 +35,13 @@ rmdir $targetdir;
--echo # --echo #
call mtr.add_suppression("InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces"); 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("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; let $restart_parameters=--innodb_undo_tablespaces=0;
--source include/restart_mysqld.inc --source include/restart_mysqld.inc
...@@ -53,4 +60,6 @@ exec $XTRABACKUP --prepare --target-dir=$targetdir; ...@@ -53,4 +60,6 @@ exec $XTRABACKUP --prepare --target-dir=$targetdir;
--echo # Display undo log files from target directory --echo # Display undo log files from target directory
list_files $targetdir undo*; list_files $targetdir undo*;
XA COMMIT 'zombie';
DROP TABLE t;
rmdir $targetdir; rmdir $targetdir;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment