Skip to content

Commit

Permalink
object_store: retry on response decoding errors
Browse files Browse the repository at this point in the history
Closes apache#6287

This PR includes `reqwest::Error::Decode` as an error case to retry on,
which can occur when a server drops a connection in the middle of
sending the response body.
  • Loading branch information
erratic-pattern committed Oct 6, 2024
1 parent b7381de commit ffa3a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions object_store/src/client/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ impl RetryableRequest {
let mut do_retry = false;
if e.is_connect()
|| e.is_body()
|| e.is_decode()
|| (e.is_request() && !e.is_timeout())
|| (is_idempotent && e.is_timeout())
{
Expand Down

0 comments on commit ffa3a4b

Please sign in to comment.