1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +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 backend: remove unused Location method 2024-05-18 21:38:31 +02:00
gs gs: Replace some errors.Wrap calls 2024-06-01 15:11:06 +02:00
layout Deprecate s3legacy layout 2024-04-10 21:27:56 +02:00
limiter CI: enable bodyclose linter 2024-01-19 21:17:18 +01:00
local backend: remove unused Location method 2024-05-18 21:38:31 +02:00
location move Backend interface to backend package 2023-10-25 23:00:18 +02:00
logger move Backend interface to backend package 2023-10-25 23:00:18 +02:00
mem backend: remove unused Location method 2024-05-18 21:38:31 +02:00
mock backend: remove unused Location method 2024-05-18 21:38:31 +02:00
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 move Backend interface to backend package 2023-10-25 23:00:18 +02:00
sftp bump required go version to 1.21 2024-08-10 19:16:10 +02:00
swift backend: remove unused Location method 2024-05-18 21:38:31 +02:00
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 move Backend interface to backend package 2023-10-25 23:00:18 +02:00
doc.go
file.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
file_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
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 move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rewind_reader.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rewind_reader_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
shell_split.go Fix typos 2023-12-06 13:11:55 +01:00
shell_split_test.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
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