Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vtbackup: Make initial backup idempotent again. #5147

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Aug 29, 2019

The check for a complete backup already existing was supposed to make
the initial backup idempotent, such that running it after an initial
backup already exists will simply do nothing and return success.

However, that property was broken when I added the check for serving
tablets above the check for a complete backup. I should have kept the
check for a complete backup first, because if there's already a complete
backup and we're doing nothing, then it's fine that some tablets may
already be serving.

Signed-off-by: Anthony Yeh enisoc@planetscale.com

The check for a complete backup already existing was supposed to make
the initial backup idempotent, such that running it after an initial
backup already exists will simply do nothing and return success.

However, that property was broken when I added the check for serving
tablets above the check for a complete backup. I should have kept the
check for a complete backup first, because if there's already a complete
backup and we're doing nothing, then it's fine that some tablets may
already be serving.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc requested review from deepthi and dkhenry August 29, 2019 17:14
@enisoc enisoc requested a review from sougou as a code owner August 29, 2019 17:14
@sougou sougou merged commit f2ff0ae into vitessio:master Aug 30, 2019
@enisoc enisoc deleted the vtbackup-init branch August 30, 2019 02:55
systay pushed a commit that referenced this pull request Jul 22, 2024
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.

3 participants