[MDEV-25866] Upgrade from pre-10.5.10 to 10.5.10 causes CHECK errors on encrypted Aria tables Created: 2021-06-06 Updated: 2021-06-07 Resolved: 2021-06-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Aria, Upgrades |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5.11 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||
| Description |
The problem was introduced by this commit in 10.5.10:
I don't know whether it is a real problem or the extended check produces false positives, but in any case corruption-like errors can cause troubles for users. REPAIR makes the errors disappear. |
| Comments |
| Comment by Michael Widenius [ 2021-06-07 ] |
|
The issue is that 10.5.9 did not store the LSN (log number) for encrypted in the pages but instead a random number. The effect of this is:
10.5.11 fixes the LSN number is stored correctly in all pages also for encrypted tables. CHECK TABLE now checks also for this kind of errors, which is what is shown in this Jira entry. REPAIR TABLE mysql.column_stats; The main effect if the above repairs are not done is that CHECK TABLE will report errors for the not updated tables. Repair of the above tables after a crash will work in most cases but not necessary in all cases until repair is done. In theory we could fix that mysql_upgrade would notice this and automatically does the above. |
| Comment by Michael Widenius [ 2021-06-07 ] |
|
Fixed that mysql_upgrade will repair old encrypted Aria tables |