Skip to content

fix(server): Retry failed scheduled snapshots - #5544

Open
cyphercodes wants to merge 1 commit into
kopia:masterfrom
cyphercodes:fix-5521-snapshot-retry-backoff
Open

fix(server): Retry failed scheduled snapshots#5544
cyphercodes wants to merge 1 commit into
kopia:masterfrom
cyphercodes:fix-5521-snapshot-retry-backoff

Conversation

@cyphercodes

Copy link
Copy Markdown

Summary

  • determine retry eligibility from the cached scheduling policy instead of the cleared next-snapshot timestamp
  • restore the five-minute retry after a failed scheduled snapshot, including while the repository is unavailable
  • keep manual-only policies unscheduled and add regression coverage for both cases

Fixes #5521

Testing

  • go test ./internal/server -run '^TestSourceManagerBackoffAfterFailed(Scheduled|Manual)Snapshot$' -count=10
  • go test ./internal/server -count=1
  • go test -race ./internal/server -count=1
  • go vet ./internal/server
  • make check-locks
  • tools/.tools/golangci-lint-2.6.1/golangci-lint --timeout 1200s run ./internal/server/...
  • git diff --check

@cyphercodes
cyphercodes requested a review from a team August 4, 2026 05:27
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.

Failed scheduled snapshot skips the retry backoff and drops out of the scheduler (since v0.14.0)

1 participant