Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws/request: IsErrorRetryable returns true for nil error #2773

Closed
jasdel opened this issue Aug 21, 2019 · 0 comments · Fixed by #2774 or #2778
Closed

aws/request: IsErrorRetryable returns true for nil error #2773

jasdel opened this issue Aug 21, 2019 · 0 comments · Fixed by #2774 or #2778
Labels
bug This issue is a bug.

Comments

@jasdel
Copy link
Contributor

jasdel commented Aug 21, 2019

Please fill out the sections below to help us address your issue.

Version of AWS SDK for Go?

v1.23.0

Version of Go (go version)?

v1.12

What issue did you see?

#2744 (comment)

When we wrap the aws clients Publish(*sns.PublishInput) (*sns.PublishOutput, error) with some of our own backoff/jitter we are using the error returned and passing that into request.IsErrorRetryable(error) which is causing us to always get true back for what we consider successful cases of nil error due to the addition of the case nil: return true in this pr inside of shouldRetryError.

Steps to reproduce

Pass nil to IsErrorRetryable.

@jasdel jasdel added the bug This issue is a bug. label Aug 21, 2019
jasdel added a commit to jasdel/aws-sdk-go that referenced this issue Aug 21, 2019
Fixes aws#2773 where the IsErrorRetryable helper was incorrectly returning
true for nil errors passed in. IsErrorRetryable will now correctly
return false when the passed in error is nil like documented.
jasdel added a commit that referenced this issue Aug 22, 2019
Fixes #2773 where the IsErrorRetryable helper was incorrectly returning
true for nil errors passed in. IsErrorRetryable will now correctly
return false when the passed in error is nil like documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
1 participant