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

Replenish cross-request retry allowance on successful response #1197

Merged
merged 7 commits into from
Feb 22, 2022

Conversation

jdisanti
Copy link
Collaborator

@jdisanti jdisanti commented Feb 17, 2022

Motivation and Context

This PR fixes an issue discovered in awslabs/aws-sdk-rust#440 where the cross-request retry allowance was never reimbursed after a successful response, so eventually it would zero out and cause retry to become permanently disabled for a client.

Testing

  • Added a unit test to verify reimbursement

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jdisanti jdisanti requested a review from a team as a code owner February 17, 2022 01:50
@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

Copy link
Collaborator

@rcoh rcoh left a comment

Choose a reason for hiding this comment

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

LGTM—can you audit the other classifiers? I like the idea of adding another variant—we could use Ok to do that, but this is more flexible.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@jdisanti
Copy link
Collaborator Author

Looks like this is a breaking change for examples. We should hold off on merging it until a release goes out.

aws/rust-runtime/aws-config/src/imds/client.rs Outdated Show resolved Hide resolved
@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

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