-
Notifications
You must be signed in to change notification settings - Fork 57
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
Allow manually remove invalid snapshots on restore #345
Conversation
606c29b
to
27aaa1c
Compare
Can you provide details on how you tested this? |
Check the updated Testing section in PR description |
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
Signed-off-by: Clarence "Sparr" Risher <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Hanyue Liang <[email protected]>
a12bd81
27aaa1c
to
a12bd81
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue #, if available: closes #93
The problem that #93 tries to fix is that if the snapshotter crashes, it won't be able to restart because the snapshotter won't be able to restore the remote snapshots (this will error out), so it will crash again and again.
Description of changes:
cherry-pick containerd/stargz-snapshotter#901
Testing performed:
I was not able to reproduce the problem (details above) by killing (SIGKILL-ing) the soci-snapshotter-grpc process when the container is running. I might have repro'd once... so I was not able to verify this PR fixes the problem. But I think this PR is still worth merging considering 1) it's defensive programming 2) it's cherrypicked from stargz repo.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.