service/s3: Always retry when an error occurs, regardless of the error type #2937
Labels
bug
This issue is a bug.
needs-review
This issue or pull request needs review from a core team member.
p3
This is a minor priority issue
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
It seems that the
ObjectExistsStateRetryable
used by default inNewObjectExistsWaiter
is being retried for errors other than NotFound.aws-sdk-go-v2/service/s3/api_op_HeadObject.go
Lines 915 to 930 in 3cc2195
Regression Issue
Expected Behavior
For NotFound errors: retry HeadObject
For errors other than NotFound: return err as is
Current Behavior
Always retry when an error occurs, regardless of the error type.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
Compiler and Version used
go version go1.23.4 darwin/arm64
Operating System and version
macOS Sonoma 14.1
The text was updated successfully, but these errors were encountered: