[MDEV-27414] Server may hang when innodb_undo_log_truncate=ON Created: 2022-01-03 Updated: 2023-05-25 Resolved: 2022-01-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.6.6, 10.7.2, 10.8.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | hang, regression | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
At the same time, buf_pool_t::release_freed_page() may hold a U-latch on this page while waiting for buf_pool.flush_list_mutex. Before To fix this, we may invoke bpage->lock.x_lock_try() instead. If it fails, we may release and reacquire buf_pool.flush_list_mutex and restart the scan. Because |
| Comments |
| Comment by Marko Mäkelä [ 2022-01-03 ] | |
|
The hang was repeatable by running
on NVMe storage (not RAM disk). The fix was validated with --repeat=30. | |
| Comment by Marko Mäkelä [ 2022-12-09 ] | |
|
|