[MDEV-25981] Upgrade results in InnoDB failures Created: 2021-06-22 Updated: 2023-11-08 Resolved: 2021-06-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.3.31, 10.4.21, 10.5.12, 10.6.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hans Borresen | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.9.2009 (Core) |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
This relates to The failures occur even with innodb_fast_shutdown disable (set to 0). I have two sample datadirs which can be used to reproduce the issue – one from mysql 5.7 directly, and one which went from 5.7 -> 10.3.29. 1. Start with a CentOS 7 server – this will be relevant for step 4 later. 2. Install MariaDB 10.3.29. 3. Extract the datadir from mariadb-10.3.29-datadir.tar.xz – start up MariaDB using this datadir and note that it runs without issues. 4. Update to 10.3.30 (not in yum repos yet, so installing via direct downloads):
5. Observe failures:
I would not expect a minor version update to suddenly fail with innodb errors that require "innodb_force_recovery=5". Rolling back to 10.3.29 works and seems like the best option. If an average end-user sees the suggestion in the log and tries "innodb_force_recovery=5" I think they'd be more likely to do harm than good. |
| Comments |
| Comment by Marko Mäkelä [ 2021-06-22 ] |
|
Thank you for filing this. I should have tested this better upfront. The problem also manifests itself as upgrade failures on our CI system, and I intended to work on this as the first thing today. The necessary fix should be simple. We must allow the type code TRX_UNDO_INSERT=1 in TRX_UNDO_CACHED pages. The function trx_undo_reuse_cached() will reset the type code to 0. I have pushed a fix to a staging branch, to see if the upgrade tests would now pass. The fix will need some further refinement, because the data directories attached to |
| Comment by Marko Mäkelä [ 2021-06-22 ] |
|
The VERSION file in the source code repository (as well as the version number reported by the server) is only tentative. It turns out that there will be an unscheduled 10.3.30 release, which will exclude I tested the upgrade locally from a freshly created 10.2 data directory in mysql-test/var/install.db, as well as the data directories from If upgrade from mariadb-10.3.29-datadir.tar.xz |