mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Test debug_key_management fails sporadically in buildbot.
Problem is that we expect key_version to be increasing so before we reset debug_key_management plugin key_version disable encryption.
This commit is contained in:
parent
0fe5eb5cae
commit
9164a24311
3 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
set global innodb_encrypt_tables=ON;
|
||||
show variables like 'innodb_encrypt%';
|
||||
Variable_name Value
|
||||
innodb_encrypt_log ON
|
||||
|
@ -16,4 +17,5 @@ space name current_key_version
|
|||
0 NULL 10
|
||||
1 mysql/innodb_table_stats 10
|
||||
2 mysql/innodb_index_stats 10
|
||||
set global innodb_encrypt_tables=OFF;
|
||||
set global debug_key_management_version=1;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
--innodb-encrypt-tables=ON
|
||||
--innodb-encrypt-log=ON
|
||||
--innodb-encryption-rotate-key-age=2
|
||||
--innodb-encryption-threads=4
|
||||
|
|
|
@ -5,6 +5,7 @@ if (`select count(*) = 0 from information_schema.plugins
|
|||
--skip Needs debug_key_management
|
||||
}
|
||||
|
||||
set global innodb_encrypt_tables=ON;
|
||||
show variables like 'innodb_encrypt%';
|
||||
|
||||
let $wait_condition= select count(*) = 3 from information_schema.innodb_tablespaces_encryption where current_key_version=1;
|
||||
|
@ -17,5 +18,7 @@ let $wait_condition= select count(*) = 3 from information_schema.innodb_tablespa
|
|||
--source include/wait_condition.inc
|
||||
|
||||
select space,name,current_key_version from information_schema.innodb_tablespaces_encryption order by space;
|
||||
# Note that we expect that key_version is increasing so disable encryption before reset
|
||||
set global innodb_encrypt_tables=OFF;
|
||||
set global debug_key_management_version=1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue