Bug #57246 --apply-log is not atomic - if it fails it might corrupt the backup image

Submitted: 5 Oct 2010 12:31 Modified: 11 Dec 2011 7:15
Reporter: Victor Kirkebo Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S3 (Non-critical)
Version:3.5 OS:Any
Assigned to: CPU Architecture:Any

[5 Oct 2010 12:31] Victor Kirkebo
Description:
Corruption of the full backup image is a problem with the current implementation of apply-log; if something goes wrong in the middle of the operation you may end up with a corrupted full backup image. For now the user should probably make sure to have an extra copy of the full backup before issuing --apply-log commands. In the future it would be nice if mysqlbackup could make the whole --apply-log "transactional" e.g. by working with a temporary copy of the full backup data until it succeeds.

How to repeat:
Please read the source code of mysqlbackup for the apply-log commands, e.g. the function copy_incremental_to_full_backup.
An example of a bug that made incremental apply-log fail: bug#57222

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.