Skip to content

xtrabackup: Make sure all files are closed before writing MANIFEST.#5177

Merged
enisoc merged 2 commits intovitessio:masterfrom
planetscale:xtrabackup-close-before-manifest
Sep 10, 2019
Merged

xtrabackup: Make sure all files are closed before writing MANIFEST.#5177
enisoc merged 2 commits intovitessio:masterfrom
planetscale:xtrabackup-close-before-manifest

Conversation

@enisoc
Copy link
Member

@enisoc enisoc commented Sep 10, 2019

We've observed a backup that was missing files, yet had a MANIFEST.
In the built-in backup engine, the contract was that the MANIFEST file
must not be written unless all files were confirmed to have been
uploaded successfully. In XtraBackup mode, we were not meeting this
contract because an error that occurred while closing a file would not
be noticed until after we had written the MANIFEST.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
We've observed a backup that was missing files, yet had a MANIFEST.
In the built-in backup engine, the contract was that the MANIFEST file
must not be written unless all files were confirmed to have been
uploaded successfully. In XtraBackup mode, we were not meeting this
contract because an error that occurred while closing a file would not
be noticed until after we had written the MANIFEST.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc requested a review from deepthi September 10, 2019 07:39
@enisoc enisoc requested a review from sougou as a code owner September 10, 2019 07:39
Copy link
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@enisoc enisoc merged commit d53de4f into vitessio:master Sep 10, 2019
@enisoc enisoc deleted the xtrabackup-close-before-manifest branch September 10, 2019 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants