restic/internal/backend/b2
Michael Eischer 257740b0cc b2: Successful delete if file does not exist
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.
2021-10-09 23:51:12 +02:00
..
b2.go b2: Successful delete if file does not exist 2021-10-09 23:51:12 +02:00
b2_test.go Read TLS client cert and key from the same file 2018-01-27 14:02:01 +01:00
config.go Run goimports 2017-07-23 14:21:03 +02:00
config_test.go Moves files 2017-07-23 14:19:13 +02:00