mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
72005b7a1c
buf_page_check_corrupt(): Display the file name.
43 lines
2 KiB
Text
43 lines
2 KiB
Text
--source include/have_innodb.inc
|
|
# embedded does not support restart
|
|
-- source include/not_embedded.inc
|
|
-- source filekeys_plugin_exists.inc
|
|
#
|
|
# MDEV-8769: Server crash at file btr0btr.ic line 122 when defragmenting encrypted table using incorrect keys
|
|
# MDEV-8768: Server crash at file btr0btr.ic line 122 when checking encrypted table using incorrect keys
|
|
#
|
|
|
|
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[0-9]+\\] in file '.*test.t1\\.ibd' cannot be decrypted\\.");
|
|
call mtr.add_suppression("InnoDB: Cannot open table .*");
|
|
call mtr.add_suppression("InnoDB: .ibd file is missing for table test/.*");
|
|
# Suppression for builds where file_key_management plugin is linked statically
|
|
call mtr.add_suppression("Couldn't load plugins from 'file_key_management.*");
|
|
|
|
--let $restart_parameters=--plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys2.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
--disable_warnings
|
|
SET GLOBAL innodb_file_format = `Barracuda`;
|
|
SET GLOBAL innodb_file_per_table = ON;
|
|
--enable_warnings
|
|
|
|
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');
|
|
|
|
--let $restart_parameters=--plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys3.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
--replace_regex /tablespace [0-9]*/tablespace / /key_id [0-9]*/key_id /
|
|
OPTIMIZE TABLE t1;
|
|
--replace_regex /tablespace [0-9]*/tablespace / /key_id [0-9]*/key_id /
|
|
SHOW WARNINGS;
|
|
|
|
--replace_regex /tablespace [0-9]*/tablespace / /key_id [0-9]*/key_id /
|
|
CHECK TABLE t1;
|
|
--replace_regex /tablespace [0-9]*/tablespace / /key_id [0-9]*/key_id /
|
|
SHOW WARNINGS;
|
|
|
|
--let $restart_parameters=--plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys2.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
DROP TABLE t1;
|