Skip to content

Commit dc1aa7b

Browse files
committed
backend/s3: Added 500 as retryErrorCode
The error code 500 Internal Error indicates that Amazon S3 is unable to handle the request at that time. The error code 503 Slow Down typically indicates that the requests to the S3 bucket are very high, exceeding the request rates described in Request Rate and Performance Guidelines. Because Amazon S3 is a distributed service, a very small percentage of 5xx errors are expected during normal use of the service. All requests that return 5xx errors from Amazon S3 can and should be retried, so we recommend that applications making requests to Amazon S3 have a fault-tolerance mechanism to recover from these errors. https://aws.amazon.com/premiumsupport/knowledge-center/http-5xx-errors-s3/
1 parent 9de5d66 commit dc1aa7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ func (f *Fs) Features() *fs.Features {
908908
// retryErrorCodes is a slice of error codes that we will retry
909909
// See: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
910910
var retryErrorCodes = []int{
911-
// 409, // Conflict - various states that could be resolved on a retry
911+
500, // Internal Server Error - "We encountered an internal error. Please try again."
912912
503, // Service Unavailable/Slow Down - "Reduce your request rate"
913913
}
914914

0 commit comments

Comments
 (0)