-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_apigatewayv2: additional ConflictException
retry logic
#40840
Conversation
Community NoteVoting for Prioritization
For Submitters
|
This change adds an additional step to the `apigatewayv2` service client retry logic to check for `ConflictException` error responses based solely on the message content. This is intended to address cases where the error is not serialized into the higher level `types.ConflictException` defined as the service package level (which the existing logic expects). Local testing of the configuration provided in the linked issue confirmed this additional logic prevents the intermittent failures observed during destruction of large numbers of routes in parallel. ```console % make testacc PKG=apigatewayv2 TESTS=TestAccAPIGatewayV2Route_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/apigatewayv2/... -v -count 1 -parallel 20 -run='TestAccAPIGatewayV2Route_' -timeout 360m 2025/01/08 15:06:20 Initializing Terraform AWS Provider... --- PASS: TestAccAPIGatewayV2Route_disappears (17.18s) --- PASS: TestAccAPIGatewayV2Route_basic (18.81s) --- PASS: TestAccAPIGatewayV2Route_target (19.62s) --- PASS: TestAccAPIGatewayV2Route_model (19.76s) --- PASS: TestAccAPIGatewayV2Route_updateRouteKey (27.79s) --- PASS: TestAccAPIGatewayV2Route_requestParameters (36.06s) --- PASS: TestAccAPIGatewayV2Route_simpleAttributes (36.27s) --- PASS: TestAccAPIGatewayV2Route_authorizer (53.29s) --- PASS: TestAccAPIGatewayV2Route_jwtAuthorization (53.34s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/apigatewayv2 59.735s ```
c60c7cd
to
d982ad6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
This functionality has been released in v5.83.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
This change adds an additional step to the
apigatewayv2
service client retry logic to check forConflictException
error responses based solely on the message content. This is intended to address cases where the error is not serialized into the higher leveltypes.ConflictException
defined as the service package level (which the existing logic expects). Local testing of the configuration provided in the linked issue confirmed this additional logic prevents the intermittent failures observed during destruction of large numbers of routes in parallel.Relations
Closes #40575
References
*smithy.OperationError
Output from Acceptance Testing