Repository navigation
upload: retry visibility checks for newly written archives - #1692
Open
powerman2026 wants to merge 1 commit into
Open
powerman2026 wants to merge 1 commit into
powerman2026 wants to merge 1 commit into
Conversation
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.
Fixes #1679.
An archive can be written successfully before the remote backend makes it visible to a stat request. The ordinary retry classifier treats the first not-found response as terminal, so the upload reports a failure even when the next stat would succeed.
Use the configured retry budget for verification of newly written table, config, RBAC and named collection archives. Keep upload and verification retries separate so a delayed stat does not cause another upload. Cancellation and deadline errors still terminate the operation immediately.
The regression test uses a storage double that returns not found on the first stat and the file on the next. With the previous classifier the lookup stopped after one call. The test also checks retry exhaustion and cancellation. Ran
go test ./pkg/backup -count=1andgo test ./pkg/...on macOS/arm64.