Skip to content

upload: retry visibility checks for newly written archives - #1692

Open
powerman2026 wants to merge 1 commit into
Altinity:masterfrom
powerman2026:fix/post-upload-stat-retry
Open

powerman2026 wants to merge 1 commit into
Altinity:masterfrom
powerman2026:fix/post-upload-stat-retry

Conversation

@powerman2026

Copy link
Copy Markdown

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=1 and go test ./pkg/... on macOS/arm64.

@Slach Slach added this to the 2.8.4 milestone Nov 18, 2026
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.

Upload fails on a transient post-upload HEAD 404 since 2.8.1

2 participants