[MDEV-25483] Shutdown crash during innodb.innodb_buffer_pool_resize_temporary Created: 2021-04-22 Updated: 2021-04-22 Resolved: 2021-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.5.0, 10.5, 10.6 |
| Fix Version/s: | 10.5.10, 10.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | race, regression-10.5 | ||
| Issue Links: |
|
||||||||
| Description |
|
The test innodb.innodb_buffer_pool_resize_temporary triggered an InnoDB crash during shutdown, leading to a situation where log-based recovery would be needed:
The fix is simple:
It suffices to have an assertion in debug builds only. This test did fail in a debug build (IA-32 embedded server) after all. The shutdown state may have advanced a little already. The following in logs_empty_and_mark_files_at_shutdown() will make this work:
There is another assignment to SRV_SHUTDOWN_CLEANUP in innodb_shutdown() as a special case for mariabackup --prepare that is not preceded by such task shutdown, but in that case, the tasks should never have been started by invoking buf_resize_start() et al:
As far as I understand, such crash may only occur if
was executed immediately before initiating server shutdown. |