fix: fail backup early when CSI VolumeSnapshot error persists in async poll#9727
Open
priyansh17 wants to merge 8 commits into
Open
fix: fail backup early when CSI VolumeSnapshot error persists in async poll#9727priyansh17 wants to merge 8 commits into
priyansh17 wants to merge 8 commits into
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Collaborator
|
fyi this is in draft, when ready for review mark it as ready |
…CSISnapshotTimeout Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
…ation Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
…r handling in VolumeSnapshot progress Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
…istent errors in VolumeSnapshot Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
Signed-off-by: Priyansh Choudhary <im1706@gmail.com>
ea1dd85 to
db661d0
Compare
Contributor
|
@priyansh17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please add a summary of your change
pkg/backup/actions/csi/volumesnapshot_action.go, in theProgress()method ofvolumeSnapshotBackupItemAction:progress.Completed=falseeven for permanent errors, so the backup controller keeps polling Progress() for the fullitemOperationTimeout(could be hours), instead of failing immediately.WaitUntilVSCHandleIsReady) properly fails on timeout, but async Progress() does not.The fix is to wait for a certain period of time before failing it/ skipping it.
Does your change fix a particular issue?
Fixes #(issue)
#9674
Please indicate you've done the following:
make new-changelog) or comment/kind changelog-not-requiredon this PR.site/content/docs/main.