Commit 1144591
committed
tq: retry batch failures
If the batch operation fails due to an error instead of a bad HTTP
status code, we'll abort the batch operation and retry. This appears to
be a regression from 1412d6e ("Don't fail if we lack objects the server
has", 2019-04-30), which caused us to handle errors differently.
Since there are two error returns from enqueueAndCollectRetriesFor,
let's wrap the batch error case as a retriable error and not abort if we
find a retriable error later on. This lets us continue to abort if we
get a missing object, which should be fatal, but retry in the more
common network failure case.1 parent 1805222 commit 1144591
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
0 commit comments