| 1 |
call mtr.add_suppression("InnoDB: Expected tablespace id .*"); |
| 2 |
# Mariabackup --backup with page0 INIT_PAGE redo record |
| 3 |
# and there is no FILE_CREATE for the tablespace t1 |
| 4 |
SET @save_dbug = @@SESSION.debug_dbug; |
| 5 |
SET DEBUG_DBUG="+d,checkpoint_after_file_create"; |
| 6 |
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB; |
| 7 |
INSERT INTO t1 VALUES(1); |
| 8 |
# xtrabackup backup |
| 9 |
# xtrabackup prepare |
| 10 |
# shutdown server |
| 11 |
# remove datadir |
| 12 |
# xtrabackup move back |
| 13 |
# restart |
| 14 |
SELECT * FROM t1; |
| 15 |
f1 |
| 16 |
1 |
| 17 |
DROP TABLE t1; |
| 18 |
SET @@SESSION.DEBUG_DBUG= @save_debug; |
| 19 |
# Mariabackup fails after corrupting the page0 in disk |
| 20 |
# and there is no INIT_PAGE for page0 |
| 21 |
CREATE TABLE t1(c INT) ENGINE=INNODB; |
| 22 |
# Corrupt the table |
| 23 |
# restart |
| 24 |
# xtrabackup backup |
| 25 |
FOUND 10 /Header page consists of zero bytes*/ in backup.log |
| 26 |
UNLOCK TABLES; |
| 27 |
DROP TABLE t1; |