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

fix race condition in waiting for restic restores to complete #2201

Merged
merged 3 commits into from
Jan 21, 2020

Conversation

skriss
Copy link
Member

@skriss skriss commented Jan 15, 2020

Signed-off-by: Steve Kriss krisss@vmware.com

closes #2121

cc @dymurray

Basic validation on this looks good, but I'd like to do some more testing before merging so leaving in draft status.

@skriss skriss marked this pull request as ready for review January 15, 2020 22:22
@skriss
Copy link
Member Author

skriss commented Jan 15, 2020

looked good to me in testing, ready for review here.

Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
dymurray
dymurray previously approved these changes Jan 21, 2020
Copy link
Contributor

@dymurray dymurray left a comment

Choose a reason for hiding this comment

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

Using a channel to wait for the restic restores to finish makes a lot of sense to me. Would be curious to see if this resolves the issue seen in our environment with the restic restore running out of disk space. Either way this change is an improvement to the way this currently functions.

Copy link
Member

@ashish-amarnath ashish-amarnath left a comment

Choose a reason for hiding this comment

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

Overall lgtm except for relocating the waiting log message into the go routine that does the waiting

Signed-off-by: Steve Kriss <krisss@vmware.com>
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

lgtm 👍

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.

Restic podvolumerestore failure not causing restore to fail
4 participants