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: Add additional retry tests for SerializationError #3682

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Dec 8, 2020

Adds additional retry expectation tests for SDK's handling of SerializationError being treated as a retryable/throttling error.

Related to #3649

Copy link
Contributor

@skotambkar skotambkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should v2 not retry 502, 503, 504 status errors as v1 classifies them as throttled errors.

https://github.com/aws/aws-sdk-go/blob/master/aws/request/retryer.go#L280

Adds additional retry expectation tests for SDK's handling of
SerializationError being treated as a retryable/throttling error.

Related to #3649
@jasdel
Copy link
Contributor Author

jasdel commented Dec 10, 2020

The concept of throttling has changed in v2, and the v2 retrier doesn't distinguish the difference between the retry and throttle. Instead opting for a token bucket approach. Where 50x errors are considered connection errors to be retried.

https://github.com/aws/aws-sdk-go-v2/blob/4e5e79c7062177e42be426acd4db9e60ecf2a0dd/aws/retry/standard.go#L41-L71

@jasdel jasdel merged commit bc1b6bc into aws:master Dec 10, 2020
@jasdel jasdel deleted the origin/AdditionalRetryTest branch December 10, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants