Skip to content

Commit

Permalink
MDEV-13765 encryption.encrypt_and_grep failed in buildbot with wrong …
Browse files Browse the repository at this point in the history
…result

- Adjust the test case to check whether all tablespaces
are encrypted by comparing it with existing table count.
  • Loading branch information
Thirunarayanan committed Mar 6, 2024
1 parent b93252a commit 8532dd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mysql-test/suite/encryption/t/encrypt_and_grep.test
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ insert t2 values (repeat('tempsecret', 12));
insert t3 values (repeat('dummysecret', 12));

--echo # Wait max 10 min for key encryption threads to encrypt all spaces
--let $tables_count= `select count(*) from information_schema.tables where engine = 'InnoDB'`
--let $wait_timeout= 600
--let $wait_condition=SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0
--let $wait_condition=SELECT COUNT(*) = $tables_count FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0
--source include/wait_condition.inc

--sorted_result
Expand Down Expand Up @@ -93,8 +94,9 @@ UNLOCK TABLES;
SET GLOBAL innodb_encrypt_tables = on;

--echo # Wait max 10 min for key encryption threads to encrypt all spaces
--let $tables_count= `select count(*) from information_schema.tables where engine = 'InnoDB'`
--let $wait_timeout= 600
--let $wait_condition=SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
--let $wait_condition=SELECT COUNT(*) = $tables_count FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0
--source include/wait_condition.inc

--sorted_result
Expand Down

0 comments on commit 8532dd8

Please sign in to comment.