[MDEV-11974] Disable encryption of spatial indexes in MariaDB 10.2 Created: 2017-02-02 Updated: 2017-09-20 Resolved: 2017-02-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-rc | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Encryption must be properly tested with SPATIAL INDEX before 10.2 goes GA. I do not think that it can work in its current form. Note that MySQL 5.7 contains this change (to prepare for the repurposing of the field as FIL_RTREE_SPLIT_SEQ_NUM), but it does not retroactively clear the field to 0 on old files:
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2017-02-03 ] | ||||
|
Possible solutions:
| ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-07 ] | ||||
|
bb-10.2- | ||||
| Comment by Marko Mäkelä [ 2017-02-07 ] | ||||
|
Some changes are needed. Most notably, compression should work on spatial indexes. | ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-07 ] | ||||
|
Addressed comments except about new error message, server team http://lists.askmonty.org/pipermail/commits/2017-February/010630.html | ||||
| Comment by Marko Mäkelä [ 2017-02-07 ] | ||||
|
Thanks, it looks almost OK now. Please demonstrate in some way that page compression actually works with SPATIAL INDEX. Can you for example run - | ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-07 ] | ||||
|
Test1: --suite=innodb_gis --big-test --force Contains result set differences like:
Test2: --suite=innodb --big-test --force: Too many failed: Failed 10/25 tests, 60.00% were successful. Again above kind of result differences and failures to create table as compression requires innodb-file-per-table | ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-07 ] | ||||
|
Using:.
Completed: Failed 1/9 tests, 88.89% were successful, and that failure was because Unknown table 'mysql.innodb_table_stats'. | ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-07 ] | ||||
|
http://lists.askmonty.org/pipermail/commits/2017-February/010635.html | ||||
| Comment by Marko Mäkelä [ 2017-02-07 ] | ||||
|
OK to push. Please explain in the commit message why we cannot support encryption in SPATIAL INDEX pages. And add an --echo #FIXME comment to the test that successfully creates a spatial index with ENCRYPTION=DEFAULT, without actually encrypting the index. I think that the title of this MDEV must be changed to ‘Disable encryption in spatial indexes’ and a follow-up MDEV must be filed for actually implementing an encryption that works with spatial indexes. | ||||
| Comment by Jan Lindström (Inactive) [ 2017-02-08 ] | ||||
|
commit 7b27465e10c0bad648d193af8062b78b10c2b1c6 Encryption stores used key_version to fil_space_encrypt(): Do not encrypt page if page type is create_table_info_t::check_table_options() Do not allow creating |