[MDEV-20588] Mariabackup incorrectly thinks a compressed table is corrupted Created: 2019-09-13 Updated: 2021-03-15 Resolved: 2021-03-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, mariabackup, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.23 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Nick Meharry | Assignee: | Marko Mäkelä |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Ubuntu 14.04, MariaDB Server 10.2.21, Mariabackup 10.2.23 |
||
| Issue Links: |
|
||||||||
| Description |
|
(copied in from a ServerFault question I asked a few days ago) mariabackup is choking on a compressed table, preventing me from backing up my database. I'm invoking mariabackup like this:
The initial output:
An hour or so later, it stumbles across a large compressed table and decides it's corrupted:
(I've snipped the contents of the page dump, as the table in question contains sensitive information. Please contact me directly if you need it.) This appears to be a consistent issue. This first happened to another table, which I later decompressed with pt-online-schema-change, was verified to be consistent with the primary database using pt-table-checksum, which I believe rules out actual table corruption. Decompressing all of the tables is not a sustainable solution because there are many other tables to migrate and it would consume a much larger amount of storage. I've just recently switched from xtrabackup because of the error Error: failed to execute query FLUSH NO_WRITE_TO_BINLOG TABLES: Query execution was interrupted (max_statement_time exceeded) during backup (see MDEV-18324) and the recommendation in the MariaDB documentation in favor of Mariabackup. (XtraBackup was working previously, but I'm unable to determine why because a hardware failure took down the replica backups were being taken from, prompting all of this.) There is an open bug against Xtrabackup that describes this situation, but the Mariabackup documentation suggests that that issue has been fixed in Mariabackup. My experience suggests otherwise, hence this bug. I would really appreciate assistance here, as I'd like to be able to backup my database again. |
| Comments |
| Comment by Jean Cardona [ 2020-10-26 ] | ||||
|
I have the exact same issue. Mariabackup is assuming that my compressed innodb tables are corrupted. | ||||
| Comment by Marko Mäkelä [ 2021-02-12 ] | ||||
|
Can we get a copy of such a corrupted page for analysis? For example, for this failure:
(assuming innodb_page_size=16384) we would want
which would hopefully be identical to what was read by backup. Is this repeatable with 10.4.4 or later, if the file was created with innodb_checksum_algorithm=full_crc32? |