2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-27 07:16:40 +00:00
restic/internal
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
..
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-26 16:22:21 +02:00
bloblru Fix typos 2024-07-03 20:02:06 +02:00
checker Revert "repository: removed redundant prepareCache method from Repository" 2024-08-17 00:18:13 +05:30
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-11 19:25:58 -06:00
fuse Switch back to sha256 from the std library 2024-08-10 19:16:10 +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-17 00:21:49 +05:30
restic Revert "repository: removed redundant prepareCache method from Repository" 2024-08-17 00:18:13 +05:30
restorer Merge pull request #5000 from deining/fix-typo 2024-08-15 19:42:14 +00: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