[MDEV-10368] get_latest_version() called too often Created: 2016-07-12 Updated: 2017-11-14 Resolved: 2016-12-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.14 |
| Fix Version/s: | 10.1.20 |
| Type: | Bug | Priority: | Major |
| Reporter: | Claudio Nanni | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | encryption, file_key_management, get_latest_version, innodb_encryption_threads | ||
| Environment: |
linux |
||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.18, 10.2.4-1 | ||||||||
| Description |
|
Data at rest encryption. MariaDB calls the get_latest_version() of the *_key_management plugins millions of times if innodb_encryption_threads>1 during data scrub. Tested with file_key_management plugin, but it should not matter. The issue can be seen at each background data scrub, so for testing purposes I have set the interval to 60 seconds: When using innodb_encryption_threads>1 the function get_latest_version() of the plugin is called millions of times, also cpu load raises considerably. Using innodb_encryption_threads=1 there is no such issue. |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2016-12-08 ] |
|
http://lists.askmonty.org/pipermail/commits/2016-December/010241.html commit 2093b7dd9807506b6f83af0969b22f27ab6c034e Reduce the number of calls to encryption_get_key_get_latest_version (1) We need to fetch key information when tablespace not yet (2) If key_id is not found from encryption plugin, do not |
| Comment by Marko Mäkelä [ 2016-12-08 ] |
|
I replied to the commit email, requesting some changes mainly related to the monitoring interfaces. |
| Comment by Jan Lindström (Inactive) [ 2016-12-12 ] |
|
http://lists.askmonty.org/pipermail/commits/2016-December/010263.html I did not do full refactoring as this is GA release and in my opinion we should avoid |
| Comment by Marko Mäkelä [ 2016-12-12 ] |
|
I would prefer some minor changes to the patch. See my reply on the commits list. |
| Comment by Jan Lindström (Inactive) [ 2016-12-13 ] |
|
commit 72cc73cea2e7071277b6a88bae0236cabf11788a Reduce the number of calls to encryption_get_key_get_latest_version (1) We need to fetch key information when tablespace not yet (2) If key_id is not found from encryption plugin, do not |