[MDEV-29511] "Page read from tablespace is corrupted" when starting mariadb service after crash (signal 6) Created: 2022-09-12 Updated: 2022-11-04 Resolved: 2022-11-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server, Storage Engine - InnoDB |
| Affects Version/s: | 10.7.5 |
| Fix Version/s: | 10.7.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan Ferrer Toribio | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | innodb | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
MariaDB throws a lot of "Page read from tablespace is corrupted" errors" when starting mariadb service after crash with signal 6. Crash:
Trying to start service again:
|
| Comments |
| Comment by Daniel Black [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Full text crash looks like The recovery fail looks like | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you Daniel, fortunately the impact has been minimal thanks to the fact that we have a slave server, probably we lost some transactions... I haven't tried recovery with innodb_force_recovery=1 but I can if needed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There's a blog about upcoming releases - https://mariadb.org/regressions-in-recent-mariadb-server-releases/ I'm glad you had minimal impacts. Interim 10.7 packages that includes fix are available here containing tested changes only. innodb_force_recovery=1 seems right per the added error message in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, unfortunately due to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Marko, as I have understood, there are several errors that together could cause partial/total loss of data even if you have backups. Would it be advisable to downgrade 10.7.4? Could this or one of the related bugs silently corrupt data while the database is running? Thank you for your prompt response and feedback. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, yes, I would recommend a downgrade to 10.7.4 until 10.7.6 is available. If the 10.6.9, 10.7.5, 10.8.4, … server never crashes before orderly shutdown (not including a shutdown with the crash-like innodb_fast_shutdown=2), then I do not think that any corruption should be possible. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-09-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko in our case it crashed during an explicit systemctl stop mariadb, we were manually shutting down the server for maintenance.
Also, it crashed (signal 6) 4 days ago but with different error which also led into innodb data corruption.
So, for security, we are going to downgrade to 10.7.4, Are data files compatible between 10.7.4 and 10.7.5? Should I take any other action aside from downgrading the version? Plus make a backup... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-09-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, could you please add a comment here, when you'll eventually upgrade to 10.7.6, telling us whether it'll work for you? If it will, this issue could be closed as a duplicate, otherwise we'll have to to keep looking. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, downgrades within the same major version series should generally be possible. You should treat the data directory after any kill or crash of a 10.7.5 server as potentially corrupted. Even if crash recovery appears to succeed, some data may be corrupted. This is because due to I am quoting my comment from
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-09-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you marko, seems clear now. serg, for now we are going to downgrade to 10.7.4, as soon as version 10.7.6 is published and after working with it for a while, I will communicate it. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, 10.7.6 should be available now. Does that work for you? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-09-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko, is it (relatively) safe to upgrade compared to 10.7.4 & 10.7.5, or it's better to wait some time? These errors occurred in production and I would not like to expose again our data to corruption. According to the road map published on https://jira.mariadb.org, the release date or 10.7.6 was planned for 2022-10-27, has the release date been brought forward? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, a series of unscheduled releases including 10.7.6 took place this week because of the crash recovery regressions. The next scheduled releases will include 10.7.7. I believe that it should be safe to upgrade to 10.7.6. Since the time of that release, we have only found the recovery failure | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There are some good news from a 10.8.5 user in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-10-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko, today I've upgraded our production MariaDB server from 10.7.4 to 10.7.6, after some time of testing I will give you feedback. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-11-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
juanferrer, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juan Ferrer Toribio [ 2022-11-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi elenst, There are still crashes in MariaDB 10.7.6, we had at least 3 (signal 11) since last upgrade, but the innodb recovery system worked fine in all of them, so I guess this particular issue is resolved. |