Closed bgiaccio closed 1 year ago
@bgiaccio thank you for the detailed report. Yes, SavingsPlans signature is broken, we'll work on a fix.
The issue is fixed in 1.12.510
@bgiaccio please let us know if you see any issues after the fix.
Confirmed your fix. I think I would have updated PartionMetadataProvider to test the assumption and at least log a warning when violated to alert you. But maybe you added a unit test but the way commits are done with this repo it is difficult to track the changes.
Thank you for the follow-up. Resolving this.
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Using the java sdk to call describeSavingsPlans from any commercial region the signingRegion is computed as us-gov-west-1. After debugging we determined the problem is a recent commit to endpoints.json#L22715-L22726
Which is related to the comment
found in PartitionMetadataProvider.java#L65
Now endpoints JSON violates that assumption as the hostname appears in the first and 3rd partitions of endpoints.json
Expected Behavior
When asking to describe savings plans in a commercial region like us-east-1 the savings plans are returned
Current Behavior
The wire logs contain
Reproduction Steps
Executing this with 1.12.504 returns results, switching to 506 produces an error
Possible Solution
Either endpoints json needs to be updated with the proper endpoint for us-gov-west-1 or the code in PartitionMetadataProvider will have to be updated to keep the data separate by partition
Additional Information/Context
No response
AWS Java SDK version used
1.12.506
JDK version used
openjdk 20.0.1 2023-04-18
Operating System and version
MacOS 13.4.1 and Redhat 8.8