| 1 |
call mtr.add_suppression('Unknown key id 1'); |
| 2 |
call mtr.add_suppression('try to repair it'); |
| 3 |
call mtr.add_suppression('Index is corrupted'); |
| 4 |
call mtr.add_suppression("Initialization of encryption failed.*"); |
| 5 |
set global aria_encrypt_tables= 1; |
| 6 |
create table t1 (pk int primary key, a int, key(a)) engine=aria transactional=1; |
| 7 |
ERROR HY000: Initialization of encryption failed for ./test/t1 |
| 8 |
set global aria_encrypt_tables= default; |
| 9 |
# |
| 10 |
# MDEV-26258 Various crashes/asserts/corruptions when Aria encryption is |
| 11 |
# enabled/used, but the encryption plugin is not loaded |
| 12 |
# |
| 13 |
SET GLOBAL aria_encrypt_tables=ON; |
| 14 |
CREATE TABLE t1 (a INT KEY,b INT,KEY(b)) ENGINE=Aria; |
| 15 |
ERROR HY000: Initialization of encryption failed for ./test/t1 |
| 16 |
# Restart with encryption enabled |
| 17 |
CREATE TABLE t1 (a INT KEY,b INT,KEY(b)) ENGINE=Aria; |
| 18 |
INSERT INTO t1 VALUES (4,0); |
| 19 |
LOAD INDEX INTO CACHE t1 IGNORE LEAVES; |
| 20 |
Table Op Msg_type Msg_text |
| 21 |
test.t1 preload_keys status OK |
| 22 |
LOAD INDEX INTO CACHE t1; |
| 23 |
Table Op Msg_type Msg_text |
| 24 |
test.t1 preload_keys status OK |
| 25 |
SELECT * FROM t1; |
| 26 |
ERROR HY000: Initialization of encryption failed for ./test/t1.MAD |
| 27 |
DROP TABLE t1; |
| 28 |
Warnings: |
| 29 |
Warning 199 Initialization of encryption failed for ./test/t1.MAD |
| 30 |
Cleanup |