Skip to content

Commit 5e5b360

Browse files
retry on S3 internal error (#5504)
1 parent 57062ce commit 5e5b360

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

quickwit/quickwit-aws/src/error.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ where E: AwsRetryable
5050

5151
fn is_retryable(meta: &aws_sdk_s3::error::ErrorMetadata) -> bool {
5252
if let Some(code) = meta.code() {
53-
THROTTLING_ERRORS.contains(&code) || TRANSIENT_ERRORS.contains(&code)
53+
THROTTLING_ERRORS.contains(&code)
54+
|| TRANSIENT_ERRORS.contains(&code)
55+
|| code == "InternalError" // this is somehow not considered transient, despite the
56+
// associated error message containing "Please try again."
5457
} else {
5558
false
5659
}

0 commit comments

Comments
 (0)