mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-9962: encryption.innodb_encryption_filekeys stalled waiting for key encryption threads to decrypt all required spaces
Test changes.
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
call mtr.add_suppression("trying to do an operation on a dropped tablespace .*");
|
||||
SET GLOBAL innodb_file_format = `Barracuda`;
|
||||
SET GLOBAL innodb_file_per_table = ON;
|
||||
SET GLOBAL innodb_encrypt_tables = OFF;
|
||||
SET GLOBAL innodb_encryption_threads = 4;
|
||||
CREATE TABLE t1 (pk INT PRIMARY KEY AUTO_INCREMENT, c VARCHAR(256)) ENGINE=INNODB;
|
||||
@ -14,24 +12,21 @@ t1 CREATE TABLE `t1` (
|
||||
CREATE TABLE t2 (pk INT PRIMARY KEY AUTO_INCREMENT, c VARCHAR(256)) ENGINE=INNODB ENCRYPTED=YES;
|
||||
CREATE TABLE t3 (pk INT PRIMARY KEY AUTO_INCREMENT, c VARCHAR(256)) ENGINE=INNODB ENCRYPTED=NO;
|
||||
CREATE TABLE t4 (pk INT PRIMARY KEY AUTO_INCREMENT, c VARCHAR(256)) ENGINE=INNODB ENCRYPTED=YES ENCRYPTION_KEY_ID=4;
|
||||
INSERT INTO t2 select * from t1;
|
||||
INSERT INTO t3 select * from t1;
|
||||
INSERT INTO t4 select * from t1;
|
||||
SET GLOBAL innodb_encrypt_tables = on;
|
||||
# Wait max 10 min for key encryption threads to encrypt required all spaces
|
||||
# Success!
|
||||
SELECT COUNT(1) FROM t1;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t2;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t3;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t4;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SET GLOBAL innodb_encrypt_tables = off;
|
||||
# Wait max 10 min for key encryption threads to decrypt all required spaces
|
||||
# Success!
|
||||
@ -50,18 +45,17 @@ INSERT INTO t5 select * from t1;
|
||||
# Success!
|
||||
SELECT COUNT(1) FROM t1;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t2;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t3;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t4;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
SELECT COUNT(1) FROM t5;
|
||||
COUNT(1)
|
||||
400
|
||||
10
|
||||
drop table t1,t2,t3,t4, t5;
|
||||
set GLOBAL innodb_default_encryption_key_id=1;
|
||||
|
Reference in New Issue
Block a user