-
Notifications
You must be signed in to change notification settings - Fork 910
[Default Configuration Part 2]:Implement auto mode discovery #2786
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
Merged
zoewangg
merged 4 commits into
feature/master/defaults-mode
from
zoewang/defaults-mode-2
Oct 26, 2021
Merged
[Default Configuration Part 2]:Implement auto mode discovery #2786
zoewangg
merged 4 commits into
feature/master/defaults-mode
from
zoewang/defaults-mode-2
Oct 26, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a23c9ff
to
00e4962
Compare
131f95f
to
37fd0db
Compare
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
...ore/src/test/java/software/amazon/awssdk/awscore/internal/AutoDefaultsModeDiscoveryTest.java
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
if (tries - 1 == 0) { | ||
throw SdkClientException.builder().message("Unable to contact EC2 metadata service.").cause(e).build(); | ||
} | ||
|
||
// Retry on any other exceptions |
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.
I think this comment got slightly lost from what it was referencing, on line 401.
Edit: Upon second read, maybe it's fine.
core/regions/src/main/java/software/amazon/awssdk/regions/internal/util/EC2MetadataUtils.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/awssdk/awscore/internal/defaultsmode/AutoDefaultsModeDiscovery.java
Show resolved
Hide resolved
Bennett-Lynch
approved these changes
Oct 25, 2021
Not sure why, but the test coverage for the change in this PR got lowered by the change totally unrelated to this PR :( |
SonarCloud Quality Gate failed. |
zoewangg
added a commit
that referenced
this pull request
Dec 17, 2021
* Add support to generate DefaultsMode and implement configuration resolution (#2781) * [Default Configuration Part 2]:Implement auto mode discovery (#2786) * Implement auto mode discovery * Fix tests on CodeBuild * Address feedback * Add comment and rename misnamed constant * [Default Configuration Part 3]: add defaults from defaults mode to the configuration resolution chain (#2803) * Wiring up configuration * Address comments * Add test * Update debug statement and add singleton for AttributeMap * Add tlsNegotiationTimeout (#2814) * [Default Configuration Part 5]: Move default configuration related classes to aws-core (#2816) * Move default configuration related classes to aws-core * Remove extra space and fix build * [Default Configuration Part 6]: apply default s3 us-east-1 regional setting (#2825) * Add s3 regional setting * Rename option name * Fix checkstyle * Update sdk-default-configuraiton.json * Add changelog entry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Note that this will be merged to
feature/master/defaults-mode
branch instead of master once approved.Implement auto mode discovery
Testing
Added tests
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense