-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Scoped the default S3 endpoint to region of the client #9459
base: main
Are you sure you want to change the base?
Conversation
Gradle Check (Jenkins) Run Completed with:
|
8029958
to
bb7481b
Compare
Gradle Check (Jenkins) Run Completed with:
|
bb7481b
to
f9a938a
Compare
Gradle Check (Jenkins) Run Completed with:
|
f9a938a
to
0ac9745
Compare
Gradle Check (Jenkins) Run Completed with:
|
0ac9745
to
2ad6cc7
Compare
macOS precommit failing due to the following issue: actions/runner-images#8104
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Raghuvansh Raj <[email protected]>
2ad6cc7
to
6a96cbc
Compare
Gradle Check (Jenkins) Run Completed with:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9459 +/- ##
============================================
- Coverage 71.09% 70.42% -0.68%
+ Complexity 57433 56780 -653
============================================
Files 4776 4776
Lines 270811 270817 +6
Branches 39582 39584 +2
============================================
- Hits 192545 190728 -1817
- Misses 62068 63792 +1724
- Partials 16198 16297 +99 ☔ View full report in Codecov by Sentry. |
Tagging @dblock for review. |
String s3Endpoint = Strings.hasText(clientSettings.region) | ||
? "s3." + Region.of(clientSettings.region).toString() + ".amazonaws.com" | ||
: GLOBAL_S3_ENDPOINT; |
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.
can we retrieve the endpoint from sdk itself , else this will break for CN and other non-classic partitions .
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.
Good call. This needs some tests, please.
This PR is stalled because it has been open for 30 days with no activity. |
@raghuvanshraj want to finish this? needs tests |
This PR is stalled because it has been open for 30 days with no activity. |
This PR is stalled because it has been open for 30 days with no activity. |
This PR is stalled because it has been open for 30 days with no activity. |
This PR is stalled because it has been open for 30 days with no activity. |
This PR is stalled because it has been open for 30 days with no activity. |
Description
The default S3 endpoint in the repository-s3 plugin was the S3 global endpoint, which caused buckets created in regions other than in
us-east-1
to fail PUT repository calls with a 307 due to delay in the DNS propagation for the new bucket. This change modifies the default endpoint to the region specific one.Related Issues
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.