Debian Codegraph @

mysql-test/suite/encryption/r/innodb-compressed-blob.result

raw
1 call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\] in file '.*test.t[123]\\.ibd' cannot be decrypted; key_version=1");
2 call mtr.add_suppression("InnoDB: Recovery failed to read page");
3 call mtr.add_suppression("InnoDB: Unable to decompress ..test.t[12]\\.ibd\\[page id: space=[1-9][0-9]*, page number=[0-9]+\\]");
4 call mtr.add_suppression("InnoDB: Failed to read page 3 from file '.*test/t[12]\\.ibd'");
5 call mtr.add_suppression("InnoDB: File '.*test/t[12]\\.ibd' is corrupted");
6 call mtr.add_suppression("Table `test`\\.`t[12]` is corrupted");
7 # Restart mysqld --file-key-management-filename=keys2.txt
8 # restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
9 set GLOBAL innodb_default_encryption_key_id=4;
10 create table t1(a int not null primary key, b blob, index(b(10))) engine=innodb row_format=compressed;
11 create table t2(a int not null primary key, b blob, index(b(10))) engine=innodb row_format=compressed encrypted=yes;
12 create table t3(a int not null primary key, b blob, index(b(10))) engine=innodb row_format=compressed encrypted=no;
13 Warnings:
14 Warning 140 InnoDB: ENCRYPTED=NO implies ENCRYPTION_KEY_ID=1
15 insert into t1 values (1, repeat('secret',6000));
16 insert into t2 values (1, repeat('secret',6000));
17 insert into t3 values (1, repeat('secret',6000));
18 # Restart mysqld --file-key-management-filename=keys3.txt
19 # restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys3.txt
20 select count(*) from t1 FORCE INDEX (b) where b like 'secret%';
21 ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate.
22 select count(*) from t2 FORCE INDEX (b) where b like 'secret%';
23 ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate.
24 select count(*) from t3 FORCE INDEX (b) where b like 'secret%';
25 count(*)
26 1
27 # Restart mysqld --file-key-management-filename=keys2.txt
28 # restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
29 drop table t1,t2,t3;