mysql lvm --dry-run holds open file

Bug #1290495 reported by Andrew Garner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
holland-backup
New
Undecided
Unassigned

Bug Description

mysql lvm --dry-run opens the archive stream to the temporary backup directory through some dubious logic in setup_actions(...).

When the dry-run finishes it then attempts to remove this temporary directory used for simulating the backup. Under some filesystems (e.g. NFS), this may fail as the directory is not empty - some other process, probably the background compression command is still holding an open file.

This is not noticed during a backup on a local filesystem, as rmdir won't complain here even though the same problem is present.

The current LVM plugin logic is ridiculously convoluted. Particularly here, the job of opening the archive stream should be left to the tar command, I think, and no files or anything heavyweight should really be done in setup_actions(...). This means passing somewhat more information to the "TarArchiveAction" that is being done today.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.