mirror of
https://github.com/MariaDB/server.git
synced 2025-02-15 01:45:33 +01:00
69 lines
3.8 KiB
Text
69 lines
3.8 KiB
Text
call mtr.add_suppression("InnoDB: Table `test`\\.`t1` (has an unreadable root page|does not exist.*is trying to rename)");
|
|
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\] in file '.*test.t1(new)?\\.ibd' cannot be decrypted; key_version=1");
|
|
call mtr.add_suppression("InnoDB: Recovery failed to read page");
|
|
call mtr.add_suppression("Couldn't load plugins from 'file_key_management");
|
|
call mtr.add_suppression("InnoDB: Tablespace for table \`test\`.\`t1\` is set as discarded\\.");
|
|
call mtr.add_suppression("InnoDB: Failed to read page 3 from file '.*test/t1\\.ibd'");
|
|
call mtr.add_suppression("InnoDB: File '.*test/t1\\.ibd' is corrupted");
|
|
call mtr.add_suppression("Table `test`\\.`t1` is corrupted");
|
|
call mtr.add_suppression("InnoDB: Cannot delete tablespace .* because it is not found in the tablespace memory cache");
|
|
call mtr.add_suppression("InnoDB: ALTER TABLE `test`\\.`t1` DISCARD TABLESPACE failed to find tablespace");
|
|
call mtr.add_suppression("\\[ERROR\\] InnoDB: Cannot decrypt \\[page id: space=");
|
|
# restart: --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, f VARCHAR(8)) ENGINE=InnoDB
|
|
ENCRYPTED=YES ENCRYPTION_KEY_ID=4;
|
|
INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
|
|
# restart: --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys3.txt
|
|
SELECT * FROM t1;
|
|
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
Error 1877 Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
ALTER TABLE t1 ENGINE=InnoDB;
|
|
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
Error 1877 Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
OPTIMIZE TABLE t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 optimize Error Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
test.t1 optimize error Corrupt
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
CHECK TABLE t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check Error Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
test.t1 check error Corrupt
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
# restart: --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
|
|
FLUSH TABLES t1 FOR EXPORT;
|
|
backup: t1
|
|
UNLOCK TABLES;
|
|
# restart: --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys3.txt
|
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
|
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, f VARCHAR(8)) ENGINE=InnoDB
|
|
ENCRYPTED=YES ENCRYPTION_KEY_ID=4;
|
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
|
restore: t1 .ibd and .cfg files
|
|
# restart: --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
|
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
|
Warnings:
|
|
Warning 1812 Tablespace is missing for table 'test/t1'
|
|
restore: t1 .ibd and .cfg files
|
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`pk` int(11) NOT NULL,
|
|
`f` varchar(8) DEFAULT NULL,
|
|
PRIMARY KEY (`pk`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=4
|
|
# restart: --innodb-encrypt-tables --plugin-load-add=file_key_management --file-key-management --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys3.txt
|
|
RENAME TABLE t1 TO t1new;
|
|
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
ALTER TABLE t1 RENAME TO t1new;
|
|
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
|
|
DROP TABLE t1;
|