-
Notifications
You must be signed in to change notification settings - Fork 8.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
HADOOP-18085. S3 SDK Upgrade causes AccessPoint ARN endpoint mistranslation #3902
Conversation
jenkins unhappy. rebase to retry |
can you add a reference to HADOOP-18068 in the commit message? will help identifying all assoicated patches. maybe a title of 'HADOOP-18068. S3 SDK Upgrade causes AccessPoint ARN endpoint mistranslation [ADDENDUM]` some other PRs do that, and as I build lists to backport its wonderful |
added some itest failures surfacing in #3916 |
💔 -1 overall
This message was automatically generated. |
d424426
to
3bc298e
Compare
…lation [ADDENDUM] Since upgrading the SDK to 1.12.132 the access point endpoint translation was broken. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. - Fixed endpoint translation with a .replace, if SDK will fix the bug then this replace will remain harmless; - Fixed the TestArnResource tests;
3bc298e
to
77dd103
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Thanks for the suggestions, updated commit message and rebased! (sorry for the delay) |
Turns out last SDK upgrade broke something it shouldn't and proved how brittle some parts of this code base are. One thing that's not brittle is the endpoint we make requests to. Endpoint seems to be quite easy to generate, thus we're moving away from using the SDK in a "nice" way and we're doing it for ourselves, since it's easier to understand what's happening (and it's 1 line of code).
🎊 +1 overall
This message was automatically generated. |
@steveloughran updated with discussed changes. Think it's ready to also go into 3.3 |
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.
+1, merging
…lation (apache#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan
…lation (#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan Change-Id: I0c0181628ab803afc39036003777eaec79aa378c
…lation (apache#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan
…lation (apache#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan Change-Id: I0c0181628ab803afc39036003777eaec79aa378c
…lation (#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan Change-Id: I0c0181628ab803afc39036003777eaec79aa378c
…lation (apache#3902) Part of HADOOP-17198. Support S3 Access Points. HADOOP-18068. "upgrade AWS SDK to 1.12.132" broke the access point endpoint translation. Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with "s3.accesspoint-" which messes up tests + region detection by the SDK. Contributed by Bogdan Stolojan
Description of PR
Since upgrading the SDK to 1.12.132 the access point endpoint translation was broken.
Correct endpoints should start with "s3-accesspoint.", after SDK upgrade they start with
"s3.accesspoint-" which messes up tests + region detection by the SDK.
then this replace will remain harmless;
How was this patch tested?
Tested in
eu-west-1
by runningwith output:
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?@steveloughran