mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
257740b0cc
When deleting a file, B2 sometimes returns a "500 Service Unavailable" error but nevertheless correctly deletes the file. Due to retries in the B2 library blazer, we sometimes also see a "400 File not present" error. The retries of restic for the delete request then fail with "404 File with such name does not exist.". As we have to rely on request retries in a distributed system to handle temporary errors, also consider a delete request to be successful if the file is reported as not existing. This should be safe as B2 claims to provide a strongly consistent bucket listing and thus a missing file shouldn't mysteriously show up again later on. |
||
---|---|---|
.. | ||
b2_test.go | ||
b2.go | ||
config_test.go | ||
config.go |