Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit b977889.
  • Loading branch information
go-to-k committed Jan 29, 2025
1 parent b977889 commit ac21105
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/client/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ func NewS3(client *s3.Client, directoryBucketsMode bool) *S3 {
strings.Contains(err.Error(), "https response error StatusCode: 0") ||
// ex: ERR [resource par-cls-019] operation error S3: DeleteObjects, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Post "https://par-cls-019.s3.us-east-1.amazonaws.com/?delete=": EOF
// but one condition above, it didn't catch on.
strings.Contains(err.Error(), "EOF") ||
// Because in rare cases, an error may occur even though the objects have been deleted.
strings.Contains(err.Error(), "api error BucketNotEmpty")
strings.Contains(err.Error(), "EOF")

return isRetryable
}
Expand Down

0 comments on commit ac21105

Please sign in to comment.