[MDEV-19914] Server startup fails while dropping garbage encrypted tablespace if innodb_encryption_threads > 0 Created: 2019-07-01  Updated: 2019-07-02  Resolved: 2019-07-01

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.2.26, 10.3.17, 10.4.7, 10.5.0

Type: Bug Priority: Major
Reporter: Thirunarayanan Balathandayuthapani Assignee: Thirunarayanan Balathandayuthapani
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Relates
relates to MDEV-18183 Server startup fails while dropping g... Closed

 Description   

The following patch makes the server to fail with assert failure:

diff --git a/mysql-test/suite/encryption/t/innodb-encryption-alter.test b/mysql-test/suite/encryption/t/innodb-encryption-alter.test
index d9a0e4e..2e18b15 100644
--- a/mysql-test/suite/encryption/t/innodb-encryption-alter.test
+++ b/mysql-test/suite/encryption/t/innodb-encryption-alter.test
@@ -123,6 +123,7 @@ SET DEBUG_SYNC = 'now WAIT_FOR done';
 SET GLOBAL innodb_flush_log_at_trx_commit=1;
 COMMIT;
 
+let $restart_parameters = --innodb_encryption_threads=2;
 --let $shutdown_timeout= 0
 --source include/restart_mysqld.inc
 disconnect con1;

I think we should check whether encryption plugin was initialized before
accessing mutex of encryption threads.


Generated at Thu Feb 08 08:55:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.