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

fix: remove InvalidChangeBatch customization #1435

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

lauzadis
Copy link
Member

@lauzadis lauzadis commented Oct 7, 2024

Route53 no longer returns non-standard InvalidChangeBatch errors, they take the standard form:

<?xml version="1.0"?>\n
<ErrorResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
	<Error>
		<Type>Sender</Type>
		<Code>InvalidChangeBatch</Code>
		<Message>[Tried to delete resource record set [name='test.blerg.com.', type='CNAME'] but the values provided do not match the current values, Tried to create resource record set [name='test.blerg.com.', type='CNAME'] but it already exists]</Message>
	</Error>
	<RequestId>ca6b6a9b-f2be-44c9-8d94-f7dfb3448d10</RequestId>
</ErrorResponse>

Issue #

Description of changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lauzadis lauzadis requested a review from a team as a code owner October 7, 2024 17:51
Copy link

github-actions bot commented Oct 7, 2024

A new generated diff is ready to view.

This comment has been minimized.

Copy link

github-actions bot commented Oct 7, 2024

A new generated diff is ready to view.

Copy link
Contributor

@0marperez 0marperez left a comment

Choose a reason for hiding this comment

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

Suggestion: Mentioning #242 in the PR description for more context

Suggestion: Adding XML syntax highlighting in the PR description

<?xml version="1.0"?>\n
<ErrorResponse
	xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
	<Error>
		<Type>Sender</Type>
		<Code>InvalidChangeBatch</Code>
		<Message>[Tried to delete resource record set [name='test.blerg.com.', type='CNAME'] but the values provided do not match the current values, Tried to create resource record set [name='test.blerg.com.', type='CNAME'] but it already exists]</Message>
	</Error>
	<RequestId>ca6b6a9b-f2be-44c9-8d94-f7dfb3448d10</RequestId>
</ErrorResponse>

{
"id": "a9deee4f-8f15-472c-906f-492066275178",
"type": "bugfix",
"description": "Remove Route53 InvalidChangeBatch customization",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: It would be more descriptive to mention that the customization deals with error responses, e.g. Remove Route53 InvalidChangeBatch error response customization

This comment has been minimized.

Copy link
Contributor

@ianbotsf ianbotsf left a comment

Choose a reason for hiding this comment

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

+1 to Omar's suggestions

Additionally, how easy/hard would it be to create an E2E test which verifies we correctly deserialize this exception from a real service response? Maybe it's hard but it seems to me such a test would've caught this behavior change earlier and could help guard against a future change.

Copy link

github-actions bot commented Oct 8, 2024

A new generated diff is ready to view.

Copy link

github-actions bot commented Oct 8, 2024

A new generated diff is ready to view.

This comment has been minimized.

Copy link

github-actions bot commented Oct 9, 2024

A new generated diff is ready to view.

This comment has been minimized.

Copy link

sonarcloud bot commented Oct 9, 2024

Copy link

github-actions bot commented Oct 9, 2024

A new generated diff is ready to view.

Copy link

github-actions bot commented Oct 9, 2024

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
marketplacereporting-jvm.jar closure 7,914,418 7,914,411 7 0.00%
internetmonitor-jvm.jar closure 8,601,406 8,601,399 7 0.00%
greengrassv2-jvm.jar closure 9,213,084 9,213,077 7 0.00%
pcaconnectorad-jvm.jar closure 9,227,324 9,227,317 7 0.00%
appstream-jvm.jar closure 10,580,122 10,580,114 8 0.00%
marketplaceentitlementservice-jvm.jar closure 7,937,837 7,937,831 6 0.00%
cloudsearchdomain-jvm.jar closure 8,034,610 8,034,604 6 0.00%
amplifyuibuilder-jvm.jar closure 9,586,321 9,586,314 7 0.00%
licensemanagerlinuxsubscriptions-jvm.jar closure 8,266,218 8,266,212 6 0.00%
workdocs-jvm.jar closure 9,656,652 9,656,645 7 0.00%
kinesisvideoarchivedmedia-jvm.jar closure 8,298,983 8,298,977 6 0.00%
marketplaceagreement-jvm.jar closure 8,314,073 8,314,067 6 0.00%
codestarnotifications-jvm.jar closure 8,356,620 8,356,614 6 0.00%
scheduler-jvm.jar closure 8,464,348 8,464,342 6 0.00%
applicationsignals-jvm.jar closure 8,687,307 8,687,301 6 0.00%
schemas-jvm.jar closure 8,707,667 8,707,661 6 0.00%
elastictranscoder-jvm.jar closure 8,732,214 8,732,208 6 0.00%
verifiedpermissions-jvm.jar closure 9,301,669 9,301,663 6 0.00%
wisdom-jvm.jar closure 9,501,991 9,501,985 6 0.00%
directconnect-jvm.jar closure 9,875,607 9,875,601 6 0.00%
kms-jvm.jar closure 9,911,039 9,911,033 6 0.00%
iottwinmaker-jvm.jar closure 9,944,653 9,944,647 6 0.00%
iotfleetwise-jvm.jar closure 10,152,579 10,152,573 6 0.00%
storagegateway-jvm.jar closure 10,565,117 10,565,111 6 0.00%
computeoptimizer-jvm.jar closure 10,601,678 10,601,672 6 0.00%
kendra-jvm.jar closure 12,026,990 12,026,984 6 0.00%
lightsail-jvm.jar closure 13,623,364 13,623,358 6 0.00%
redshift-jvm.jar closure 13,729,524 13,729,559 -35 -0.00%
redshift-jvm.jar 5,931,500 5,931,539 -39 -0.00%
kinesisvideowebrtcstorage-jvm.jar 129,961 129,967 -6 -0.00%
elasticache-jvm.jar closure 11,571,333 11,572,962 -1,629 -0.01%
memorydb-jvm.jar closure 9,715,083 9,716,760 -1,677 -0.02%
route53-jvm.jar closure 10,746,301 10,750,408 -4,107 -0.04%
elasticache-jvm.jar 3,773,309 3,774,942 -1,633 -0.04%
memorydb-jvm.jar 1,917,059 1,918,740 -1,681 -0.09%
route53-jvm.jar 2,948,277 2,952,388 -4,111 -0.14%
deadline-jvm.jar closure 12,056,175 12,087,291 -31,116 -0.26%
deadline-jvm.jar 4,258,151 4,289,271 -31,120 -0.73%
qconnect-jvm.jar closure 9,912,463 10,874,716 -962,253 -8.85%
qconnect-jvm.jar 2,114,439 3,076,696 -962,257 -31.28%

@lauzadis lauzadis requested a review from ianbotsf October 9, 2024 14:59
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