[MDEV-17233] Page 0 is updated more than once when encryption completes. Created: 2018-09-18 Updated: 2018-12-07 Resolved: 2018-12-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption |
| Affects Version/s: | 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Robert Golebiowski | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
Page0 is updated by each thread that it consider last one running on a space. There can be more than one such thread due to the fact that threads are allowed to "run" on a space although next_offset > max_offset. Do not allow thread to work on a space when next_offset > max_offset. |
| Comments |
| Comment by Elena Stepanova [ 2018-09-18 ] |
|
jplindst, if you decide to fix it, please set affects/fix versions accordingly. |
| Comment by Jan Lindström (Inactive) [ 2018-11-07 ] |
|
After investigation I could not confirm that page 0 or any of the other pages belonging to table space would be written more than one. In the code next_offset really could be > max_offset, but any of the threads (I used 8) did not read any page twice or outside of max_offset. Here I assumed that table space does not extend during key rotation. Based on my investigation key rotation works as designed. How did you find the fact that page 0 would be written twice ? |