[MDEV-17230] encryption_key_id from alter is ignored by encryption threads Created: 2018-09-18  Updated: 2019-03-29  Resolved: 2018-11-06

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1, 10.3.9, 10.2
Fix Version/s: 10.3.11, 10.1.38, 10.2.20

Type: Bug Priority: Major
Reporter: Robert Golebiowski Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-18601 Can't create table with ENCRYPTED=DEF... Closed
relates to MDEV-19086 Make InnoDB background encryption thr... Open

 Description   

Although it is possible to specify encryption key id in alter statement for not encrypted tables (innodb_encrypt_tables = off): ALTER TABLE t1 ENCRYPTION_KEY_ID=X. The encryption threads when encrypting such table (innodb_encrypt_tables = on) will use key id 0 instead of X specified.



 Comments   
Comment by Jan Lindström (Inactive) [ 2018-10-10 ]

https://github.com/MariaDB/server/commit/0bafdc478c4ab8c577331b950dc7719abd6781c1

Comment by Marko Mäkelä [ 2018-10-31 ]

Looks otherwise OK, but I would clarify the error message.

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