2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-23 13:17:42 +00:00
restic/internal
Michael Eischer 8206cd19c8 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-30 12:45:20 +02:00
..
archiver backup: store but warn if extended metadata for item is incomplete 2024-08-03 22:25:29 +02:00
backend backend/retry: don't trip circuit breaker if context is canceled 2024-08-30 12:45:20 +02:00
bloblru Fix typos 2024-07-03 20:02:06 +02:00
checker Revert "repository: removed redundant prepareCache method from Repository" 2024-08-30 12:43:13 +02:00
crypto crypto: cleanup ciphertext verification error 2024-06-05 22:33:20 +02:00
debug Fix review comments 2024-04-29 16:21:38 -06:00
dump dump: add GetOrCompute to bloblru cache 2024-05-05 11:38:42 +02:00
errors Add changelog and fix lint error 2024-02-24 13:47:49 -07:00
feature s3: forbid anonymous authentication unless explicitly requested 2024-07-10 20:10:27 +02:00
filter remove no longer necessary conditional compiles 2022-11-27 13:18:44 +01:00
fs Add test cases and handle volume GUID paths 2024-08-30 12:37:10 +02:00
fuse Add more checks for canceled contexts 2024-07-31 19:30:47 +02:00
migrations remove usages of repo.Backend() from tests 2024-05-18 21:42:51 +02:00
options backend, options: Prefer strings.Cut to SplitN 2022-12-02 19:19:14 +01:00
repository cache: remove redundant index file cleanup 2024-08-30 12:43:13 +02:00
restic restic: cleanup redundant code in test case 2024-08-30 12:45:20 +02:00
restorer Fix typos 2024-08-30 12:37:10 +02:00
selfupdate Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
test use consistent alias for interal/test package 2024-03-29 00:24:03 +01:00
textfile Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
ui json: switch backup and restore errors from string to struct types 2024-08-03 16:21:44 -04:00
walker Add more checks for canceled contexts 2024-07-31 19:30:47 +02:00