-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Preserve ETag case for S3 compatibility #7498
Conversation
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.
For consistency, can you also make this change in checkCopyObjectPreconditions and checkPreconditions
Done @poornas |
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.
LGTM
@harshavardhana Please fix unit tests. Travis is failing. |
Done @kannappanr |
Most hadoop distributions hortonworks, cloudera all depend on aws-sdk-java 1.7.x to 1.10.x - the releases which have bugs related case sensitive check for ETag header. Go changes the case of the headers set to be canonical but only preserves them when set through a direct map. This fixes most compatibility issues we have had in the past supporting older hadoop distributions.
ping @poornas @donatello |
Codecov Report
@@ Coverage Diff @@
## master #7498 +/- ##
=========================================
- Coverage 48.02% 47.53% -0.5%
=========================================
Files 296 281 -15
Lines 46797 46465 -332
=========================================
- Hits 22476 22086 -390
- Misses 22236 22306 +70
+ Partials 2085 2073 -12
Continue to review full report at Codecov.
|
Mint Automation
7498-f79072f/mint-worm.sh.log:
7498-f79072f/mint-gateway-nas.sh.log:
|
Description
Preserve ETag case for S3 compatibility
Motivation and Context
Most hadoop distributions hortonworks, cloudera all
depend on aws-sdk-java 1.7.x to 1.10.x - the releases
which have bugs related case sensitive check for
ETag header. Go changes the case of the headers set
to be canonical but only preserves them when set
through a direct map.
This fixes most compatibility issues we have had
in the past supporting older hadoop distributions.
Regression
No
How Has This Been Tested?
Using hortonworks HDP 2.6.5 with hadoop 2.7.3 and aws-sdk-java 1.10.6
Types of changes
Checklist:
mint
PR # here: )