[MDEV-33363] CI failure: innodb.import_corrupted: Assertion failed: oldest_lsn > log_sys.last_checkpoint_lsn Created: 2024-02-02 Updated: 2024-02-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.8.1, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3, 11.4 |
| Fix Version/s: | 10.11, 11.0, 11.1, 11.2, 11.3, 11.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Debarun Banerjee | Assignee: | Debarun Banerjee |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | debug | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The failure is observed in st-10.11- The assert is introduced in https://buildbot.mariadb.org/#/builders/234/builds/26196/steps/9/logs/stdio
|
| Comments |
| Comment by Marko Mäkelä [ 2024-02-02 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Here is some code up to the failing assertion in log_checkpoint_low():
This would seem to guarantee that the equality cannot hold. So, we must have had an oldest_lsn that is smaller than the log_sys.last_checkpoint_lsn. That would seem to be a sign of a severe error in the checkpoint logic. The parameter oldest_lsn was computed by the following in log_checkpoint():
The field log_sys.last_checkpoint_lsn is protected by log_sys.latch (and write_lock and flush_lock) when log_t::write_checkpoint() is modifying it. Also the end_lsn=log_sys.lsn is protected by the exclusive log_sys.latch. Here are some local variables from the stack trace:
The variable flush_lsn, whose scope had not started before the failing assertion was evaluated, is garbage, but the rest looks reasonable. The oldest modified block in the buf_pool.flush_list must have an buf_page_t::oldest_modification_ of 0xdbbfe9. For some reason, the latest checkpoint LSN (log_sys.last_checkpoint_lsn) is larger than this. This means that the log checkpoint had been advanced prematurely on a previous invocation of log_checkpoint_low(), while some older page modifications had not yet been written back from the buffer pool. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2024-02-07 ] | |||||||||||||||||||||||||||||||||||||||||||
|
|