[MDEV-26121] [Note] InnoDB: Resetting invalid page [page id: space=5, page number=3] type 17855 to 6. Created: 2021-07-09 Updated: 2021-11-16 Resolved: 2021-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.6, 10.7 |
| Fix Version/s: | 10.6.6, 10.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | not-10.4, not-10.5, regression, rr-profile-analyzed | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Leads to (error log):
Happens on debug+optimized. 10.6/7 Only. |
| Comments |
| Comment by Roel Van de Paar [ 2021-08-21 ] | ||||||||||||||||||||||||||||||||||||||
|
Leads to:
And:
| ||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-11-01 ] | ||||||||||||||||||||||||||||||||||||||
|
I am unable to repeat this. What is the call stack of fil_block_reset_type()? You can add a breakpoint or an abort() to the start of the function. | ||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-11-01 ] | ||||||||||||||||||||||||||||||||||||||
|
As far as I understand, only a call to fil_block_check_type() with the parameter FIL_PAGE_TYPE_SYS should be able to produce such messages. There are a few such calls on database startup, but only for the InnoDB system tablespace. | ||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-11-04 ] | ||||||||||||||||||||||||||||||||||||||
|
The stack trace definitely points to
I think that the message indeed can be promoted to a warning. Also the test case variant with a duplicate key error during a multi-row INSERT is executing rollback and issuing the message there. | ||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2021-11-06 ] | ||||||||||||||||||||||||||||||||||||||
|
In dict_index_t::clear(), InnoDB frees all the page except root page.
But in fseg_create(), we do have the assumption that only {{FIL_PAGE_TYPE_TRX_SYS or FIL_PAGE_TYPE_TRX_SYS}}page should |