Skip to content

Commit 2f20be9

Browse files
committed
Merge 10.1 into 10.2
2 parents 4386ee8 + 28b2896 commit 2f20be9

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

mysql-test/suite/encryption/disabled.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
innodb_scrub : MDEV-8139 scrubbing does not work reliably
1414
innodb_scrub_background : MDEV-8139 scrubbing does not work reliably
15-
innodb_encryption : an adjustment for MDEV-13583 is needed
15+

mysql-test/suite/encryption/r/innodb_encryption.result

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
call mtr.add_suppression("InnoDB: New log files created");
2-
call mtr.add_suppression("InnoDB: Creating foreign key constraint system tables.");
31
SET @start_global_value = @@global.innodb_encryption_threads;
42
SHOW VARIABLES LIKE 'innodb_encrypt%';
53
Variable_name Value
@@ -14,13 +12,17 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
1412
NAME
1513
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
1614
NAME
15+
mysql/innodb_table_stats
16+
mysql/innodb_index_stats
1717
innodb_system
1818
# Success!
1919
# Now turn off encryption and wait for threads to decrypt everything
2020
SET GLOBAL innodb_encrypt_tables = off;
2121
# Wait max 10 min for key encryption threads to encrypt all spaces
2222
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
2323
NAME
24+
mysql/innodb_table_stats
25+
mysql/innodb_index_stats
2426
innodb_system
2527
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
2628
NAME
@@ -33,6 +35,8 @@ SET GLOBAL innodb_encrypt_tables = on;
3335
# Wait 15s to check that nothing gets encrypted
3436
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
3537
NAME
38+
mysql/innodb_table_stats
39+
mysql/innodb_index_stats
3640
innodb_system
3741
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
3842
NAME
@@ -44,6 +48,8 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
4448
NAME
4549
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
4650
NAME
51+
mysql/innodb_table_stats
52+
mysql/innodb_index_stats
4753
innodb_system
4854
# Success!
4955
# Restart mysqld --innodb_encrypt_tables=0 --innodb_encryption_threads=0
@@ -56,6 +62,8 @@ innodb_encryption_rotation_iops 100
5662
innodb_encryption_threads 0
5763
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
5864
NAME
65+
mysql/innodb_table_stats
66+
mysql/innodb_index_stats
5967
innodb_system
6068
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
6169
NAME

mysql-test/suite/encryption/t/innodb_encryption.test

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
# embedded does not support restart
99
-- source include/not_embedded.inc
1010

11-
call mtr.add_suppression("InnoDB: New log files created");
12-
call mtr.add_suppression("InnoDB: Creating foreign key constraint system tables.");
13-
1411
SET @start_global_value = @@global.innodb_encryption_threads;
1512

1613
SHOW VARIABLES LIKE 'innodb_encrypt%';
@@ -19,7 +16,7 @@ SET GLOBAL innodb_encrypt_tables = ON;
1916

2017
--echo # Wait max 10 min for key encryption threads to encrypt all spaces
2118
--let $wait_timeout= 600
22-
--let $wait_condition=SELECT COUNT(*) >= 1 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
19+
--let $wait_condition=SELECT COUNT(*) >= 3 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
2320
--source include/wait_condition.inc
2421

2522
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
@@ -62,7 +59,7 @@ SET GLOBAL innodb_encryption_threads=@start_global_value;
6259

6360
--echo # Wait max 10 min for key encryption threads to encrypt all spaces
6461
--let $wait_timeout= 600
65-
--let $wait_condition=SELECT COUNT(*) >=1 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
62+
--let $wait_condition=SELECT COUNT(*) >=3 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
6663
--source include/wait_condition.inc
6764

6865
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;

0 commit comments

Comments
 (0)