[MDEV-29208] mariabackup skips imported tables Created: 2022-07-29 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | mariabackup |
| Affects Version/s: | 10.5.15 |
| Fix Version/s: | 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marek Hlavka | Assignee: | Luis Eduardo Oliveira Lizardo |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | mariabackup, transportable_tablespaces | ||
| Environment: |
Debian 9 |
||
| Description |
|
If mariabackup is run after recent table import, freshly imported tables are not backed up.
|
| Comments |
| Comment by Marko Mäkelä [ 2022-08-01 ] | ||||||
|
I did not verify this bug, but I think that it is plausible that it does not work. As far as I remember, no FILE_ record for the IMPORT TABLESPACE operation will be logged. The DDL tracking in backup is based on those records. The DISCARD TABLESPACE will write a FILE_DELETE record, just like any DDL operation that is dropping or rebuilding a tablespace would. Would the backup work after anything has been written to the imported table? | ||||||
| Comment by Marek Hlavka [ 2022-08-01 ] | ||||||
|
Unfortunately, the table is not backed up even after a successfull DML following the import. | ||||||
| Comment by Marko Mäkelä [ 2022-08-06 ] | ||||||
|
Can this be reproduced if the first invocations of mariabackup are replaced with
Can this be reproduced if there is a log checkpoint and a write to the table before the final mariabackup --backup invocation?
| ||||||
| Comment by Marek Hlavka [ 2022-08-09 ] | ||||||
|
For the first case, where import source is not from a mariabackup, issue can be still reproduced, however for the second, it can't (the DML have no impact on the outcome, the table is still backed up). | ||||||
| Comment by Marko Mäkelä [ 2022-08-10 ] | ||||||
|
Thank you, just like I expected. I would further expect that the backup would include the imported table even if there was no write to it. The relevant thing should be whether a log checkpoint occurred between the import and the backup attempt. |