Skip to content

Commit ffa3a4b

Browse files
object_store: retry on response decoding errors
Closes https://github.com/apache/arrow-rs/issues/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.
1 parent b7381de commit ffa3a4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

object_store/src/client/retry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ impl RetryableRequest {
312312
let mut do_retry = false;
313313
if e.is_connect()
314314
|| e.is_body()
315+
|| e.is_decode()
315316
|| (e.is_request() && !e.is_timeout())
316317
|| (is_idempotent && e.is_timeout())
317318
{

0 commit comments

Comments
 (0)