From e8c0a0fc2c2d8fb4cbe3272cd45932fbf25e74c8 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Mon, 21 Oct 2024 09:35:31 +0200 Subject: [PATCH] retry on S3 internal error --- quickwit/quickwit-aws/src/error.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickwit/quickwit-aws/src/error.rs b/quickwit/quickwit-aws/src/error.rs index 1ba737393d7..84c0c724e43 100644 --- a/quickwit/quickwit-aws/src/error.rs +++ b/quickwit/quickwit-aws/src/error.rs @@ -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 }