1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-02-28 16:56:24 +00:00
restic/internal/backend
Michael Eischer e24dd5a162 backend/retry: don't trip circuit breaker if context is canceled
When the context used for a load operation is canceled, then the result
is always an error independent of whether the file could be retrieved
from the backend. Do not false positively trip the circuit breaker in
this case.

The old behavior was problematic when trying to lock a repository. When
`Lock.checkForOtherLocks` listed multiple lock files in parallel and one
of them fails to load, then all other loads were canceled. This
cancelation was remembered by the circuit breaker, such that locking
retries would fail.
2024-08-26 16:22:21 +02:00
..
azure azure: Improve error message in azure.Create() 2024-06-03 23:37:17 +02:00
b2 return exit code 10 if repository does not exist 2024-07-10 21:46:26 +02:00
cache cache: add test for the automated cache clear to cache backend 2024-08-11 23:41:07 +05:30
dryrun
gs gs: Replace some errors.Wrap calls 2024-06-01 15:11:06 +02:00
layout
limiter
local
location
logger
mem
mock
rclone bump required go version to 1.21 2024-08-10 19:16:10 +02:00
rest bump required go version to 1.21 2024-08-10 19:16:10 +02:00
retry backend/retry: don't trip circuit breaker if context is canceled 2024-08-26 16:22:21 +02:00
s3 s3: forbid anonymous authentication unless explicitly requested 2024-07-10 20:10:27 +02:00
sema
sftp bump required go version to 1.21 2024-08-10 19:16:10 +02:00
swift
test replace deprecated usages of math/rand 2024-08-10 19:34:49 +02:00
testdata
util bump required go version to 1.21 2024-08-10 19:16:10 +02:00
backend.go return exit code 10 if repository does not exist 2024-07-10 21:46:26 +02:00
backend_test.go
doc.go
file.go
file_test.go
http_transport.go backend: increase request progress timeout to 5 minutes 2024-06-01 19:01:51 +02:00
httpuseragent_roundtripper.go http: allow custom User-Agent for outgoing HTTP requests 2024-05-30 15:38:06 +02:00
httpuseragent_roundtripper_test.go http: allow custom User-Agent for outgoing HTTP requests 2024-05-30 15:38:06 +02:00
readerat.go
rewind_reader.go
rewind_reader_test.go
shell_split.go
shell_split_test.go
watchdog_roundtriper.go backend: return correct error on upload/request timeout 2024-08-10 18:06:24 +02:00
watchdog_roundtriper_test.go Merge pull request #4993 from MichaelEischer/fix-timeout-error 2024-08-15 22:07:37 +02:00