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

add retry classifier customization RFC #3018

Merged
merged 12 commits into from
Oct 10, 2023

Conversation

Velfi
Copy link
Contributor

@Velfi Velfi commented Oct 2, 2023

add SUMMARY link to new RFC


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

add SUMMARY link to new RFC
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

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

This is a great start! I'm mostly bike shedding and being pedantic. Towards the end of the doc, it looks like some threads got muddied by later design discussions.

design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
design/src/rfcs/rfc0037_retry_classifier_customization.md Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@Velfi Velfi marked this pull request as ready for review October 4, 2023 15:03
@Velfi Velfi requested review from a team as code owners October 4, 2023 15:03
@Velfi Velfi marked this pull request as draft October 4, 2023 15:03
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@Velfi Velfi marked this pull request as ready for review October 9, 2023 14:56
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

github-merge-queue bot pushed a commit that referenced this pull request Oct 10, 2023
[Read the RFC here](#3018)

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
#2417

## Description
<!--- Describe your changes in detail -->
Exactly what it says on the tin. I have a related RFC to publish that
goes into more depth.

## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
I wrote an integration test that ensures a custom retry classifier can
be set and is called.

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates
- [x] 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._
Comment on lines 314 to 318
- `AwsErrorCodeClassifier`: Checks for errors with AWS error codes marking them
as either transient or throttling errors. If one is encountered, returns
`Some(RetryAction::Retry(ErrorKind))`. Otherwise, returns `None`. Requires a
parsed response.
- `AmzRetryAfterHeaderClassifier`: Checks the HTTP response for an
Copy link
Collaborator

Choose a reason for hiding this comment

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

These were combined, right?

Copy link
Contributor Author

@Velfi Velfi Oct 10, 2023

Choose a reason for hiding this comment

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

oops, good catch. I updated this but I somehow lost the changes. IntelliJ doesn't have the changes in local history, so perhaps I hallucinated them?

Either way, I'll fix this.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@Velfi Velfi enabled auto-merge October 10, 2023 20:11
@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@Velfi Velfi added this pull request to the merge queue Oct 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2023
@Velfi Velfi added this pull request to the merge queue Oct 10, 2023
Merged via the queue into main with commit e06a57d Oct 10, 2023
40 of 41 checks passed
@Velfi Velfi deleted the rfc/zhessler-retry-classifier-customization branch October 10, 2023 21:47
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