[MDEV-27401] Randomly destroyed tables after migration to 10.6.4 (also under 10.6.5) Created: 2022-01-02 Updated: 2022-01-03 Resolved: 2022-01-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Platform OpenBSD, Server, Storage Engine - InnoDB, Upgrades |
| Affects Version/s: | 10.6.4 |
| Fix Version/s: | 10.5.13, 10.6.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | David Rotermund | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | crash, innodb | ||
| Environment: |
OpenBSD 7.0 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Hi, two weeks ago or so, I updated from OpenBSD 6.9 (MariaDB 10.5.9) to OpenBSD 7.0 (MariaDB 10.6.4). Since then nearly every day one of my tables breaks. Every time it is a different/random table and random database. If I "dump", "select", or "check" that table then the MariaDB server leaves this plane of existence for some time before coming back to life. This can happen to tables that were create before or after the update. Also I noticed that only chunks of the table are damaged. If I "select" stuff before or after the broken segment of the table, then I can still get the data. First I thought that something is wrong with the official OpenBSD package or some libs are not the same as in the official OpenBSD build. Thus I just compiled 10.6.5 on that server from source. cogniumweb# mysql_upgrade -u root -p cogniumweb# mysqlcheck -A -u root -p I dropped that table and then recreated it via And now the system is happy again but tomorrow I expect it to kill the next table... I am a bit out of ideas what to do... Help? Please! best wishes |
| Comments |
| Comment by Marko Mäkelä [ 2022-01-02 ] | ||
|
The 10.6.4 release would be affected by a bug that was introduced in Do you get files corrupted if you upgrade straight from 10.5.9 to 10.6.5? | ||
| Comment by David Rotermund [ 2022-01-02 ] | ||
|
Sorry, I don't have this kind of backup of the old database to test it. (I am using for my backups sql dumps of the databases and I don't backup the /var/mysql directory for more than a few days.) | ||
| Comment by Marko Mäkelä [ 2022-01-03 ] | ||
|
davrot, let me put it in another way: Does MariaDB 10.6.5 corrupt your files if you start from a SQL dump? I am pretty sure that 10.6.4 can do that when using an operating system or file system where stat() or fstat() reports a st_blksize that is not a power of 2. In a comment in
When the server is configured with a small enough innodb_buffer_pool_size, it should notice the corruption when it has to read pages back from the file system. The bug was that when data files were being extended, they were being corrupted. | ||
| Comment by David Rotermund [ 2022-01-03 ] | ||
|
I tried to set innodb_buffer_pool_size=1M but it automatically increased it to 5M. Nevertheless, the test database grew up to 1.6GByte and was happy. Afterwards I ran a mysqlcheck on the database and it was still happy. I did this several times and everything was okay. The moral of the story is for me: I will drop all my databases and re-populate them from the backup sql dumps and wait... Thank you for your help! | ||
| Comment by Marko Mäkelä [ 2022-01-03 ] | ||
|
davrot, thank you for confirming that this was likely a duplicate of Again, I am sorry that we do not have any flavor of BSD in any of our CI systems. OK, except maybe for IBM AIX, which currently fails to build 10.6 or later due to recently changed build-time dependencies. |