Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
Description
On BACKUP START the server should start monitoring DDLs and collect all names of tables that had their metadata changed.
This can be collected in a temporary table (MEMORY with overflow to disk, as usual) and returned, for example, in a INFORMATION_SCHEMA table (preferrably with file names, if possible).
The backup client can thus retrieve all such tables (that were supposedly created/dropped/renamed/modified during the backup process) and copy them again (or drop or rename in the backup — the I_S table should have enough information for that).
Attachments
Issue Links
- is blocked by
-
MDEV-17308 BACKUP: mariabackup support
-
- Closed
-
- is duplicated by
-
MDEV-18465 Logging of DDL statements during backup
-
- Closed
-
- relates to
-
MDEV-5336 Implement BACKUP STAGE for safe external backups
-
- Closed
-
I think that it would be hard to do efficient renames in Aria, just based on file names and operations in the DDL log.
Because the table can be recreated several times while backup is running, we can not know for sure which version of the table is now in the backup.
With Innodb it is possible to know which version we have, because tablespaces have IDs that change if file is dropped and recreated.
In absence of unique versioning, we'll have to re-copy new and renamed files that are in the DDL log.