[MDEV-8015] InnoDB: Failing assertion: new_state->key_version != ENCRYPTION_KEY_VERSION_INVALID Created: 2015-04-18 Updated: 2015-05-13 Resolved: 2015-05-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.4 |
| Fix Version/s: | 10.1.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | verified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
If the server starts on a fresh datadir with
(only with them on top of defaults),
|
| Comments |
| Comment by Sergei Golubchik [ 2015-05-09 ] | ||||||||||||||||||||||||||||||||
|
This is not a bug, it's intentional. You've requested InnoDB to encrypt the data and didn't load an encryption plugin. InnoDB tries to get an encryption key, fails, and crashes the server (which is a typical InnoDB reaction to errors). Despite being intentional, I agree that it's not good. I'll try to do something about it. | ||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-05-10 ] | ||||||||||||||||||||||||||||||||
|
I find it somewhat weird – I mean not technically, but logically – that it only fails with innodb-encryption-threads, but doesn't fail if I only set innodb-encrypt-tables. | ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2015-05-10 ] | ||||||||||||||||||||||||||||||||
|
jplindst, could you please look at it? I've fixed the assertion rather simply:
And now I get a crash with --innodb-encryption-threads=4 but without --innodb-encrypt-tables. Assert in buf_page_io_complete(), because the page is corrupted. And the page is considered corrupted in here:
Because the page looks like this:
| ||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2015-05-11 ] | ||||||||||||||||||||||||||||||||
|
Could not easily repeat with above fix. Possible fix candidate anyway:
| ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2015-05-11 ] | ||||||||||||||||||||||||||||||||
|
Cannot repeat this anymore. May be it as a broken build or some later change fixed it. |