[MDEV-25869] Change buffer entries for secondary indexes are lost on InnoDB restart Created: 2021-06-07 Updated: 2022-02-10 Resolved: 2021-06-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.30, 10.3.21, 10.4.11 |
| Fix Version/s: | 10.2.39, 10.3.30, 10.4.20 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | not-10.5, regression-10.2, regression-10.3, regression-10.4, rr-profile-analyzed | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The bug fix
MariaDB Server 10.5 is not affected by this, because this code was removed in Also if crash recovery is needed, those tablespaces for which no redo log was applied could be affected by this bug. I believe that this kind of corruption can be detected by CHECK TABLE, and it can be fixed by dropping and re-creating the secondary indexes:
A work-around would be to ensure that the change buffer is empty during shutdown (set innodb_fast_shutdown=0) or to always run with innodb_change_buffering=none. This bug was originally reported and analyzed in |
| Comments |
| Comment by Manuel Arostegui [ 2021-06-07 ] |
|
We have been using the combination of |
| Comment by Marko Mäkelä [ 2021-06-08 ] |
|
Pushed to 10.2 and merged to 10.3 and 10.4. |