Skip to content

Commit

Permalink
retry on S3 internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
trinity-1686a committed Oct 21, 2024
1 parent 57062ce commit e8c0a0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quickwit/quickwit-aws/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ where E: AwsRetryable

fn is_retryable(meta: &aws_sdk_s3::error::ErrorMetadata) -> bool {
if let Some(code) = meta.code() {
THROTTLING_ERRORS.contains(&code) || TRANSIENT_ERRORS.contains(&code)
THROTTLING_ERRORS.contains(&code)
|| TRANSIENT_ERRORS.contains(&code)
|| code == "InternalError" // this is somehow not considered transient, despite the
// associated error message containing "Please try again."
} else {
false
}
Expand Down

0 comments on commit e8c0a0f

Please sign in to comment.