-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix issue with s3-compatible repositories due to missing checksum trailing headers #19220
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
Fix issue with s3-compatible repositories due to missing checksum trailing headers #19220
Conversation
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
|
❌ Gradle check result for 6d099aa: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Craig Perkins <[email protected]>
|
❌ Gradle check result for a4beb3b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Craig Perkins <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #19220 +/- ##
============================================
+ Coverage 72.88% 73.28% +0.39%
- Complexity 69841 70210 +369
============================================
Files 5673 5673
Lines 320756 320774 +18
Branches 46370 46371 +1
============================================
+ Hits 233796 235087 +1291
+ Misses 68102 66986 -1116
+ Partials 18858 18701 -157 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@cwperks, thank you for the fix. The fix works just fine for Oracle Storage and some others not so popular storages. |
Signed-off-by: Craig Perkins <[email protected]>
I think that makes sense. I pushed a change for that and added tests as well. Provided the gradle check passes I will take this out of draft. Thank you for confirming the patch works. |
Signed-off-by: Craig Perkins <[email protected]>
This reverts commit 6023298. Signed-off-by: Craig Perkins <[email protected]>
|
❌ Gradle check result for eab0f71: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for eab0f71: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
mch2
left a comment
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.
This lgtm, thanks for the fix @cwperks
…iling headers (opensearch-project#19220) * Update CHANGELOG to use correct comparison link of 3.2..main Signed-off-by: Craig Perkins <[email protected]> * Fix repository-s3 plugin to work with s3-compatible blob stores Signed-off-by: Craig Perkins <[email protected]> * Apply to S3AsyncService as well Signed-off-by: Craig Perkins <[email protected]> * Add to CHANGELOG Signed-off-by: Craig Perkins <[email protected]> * Remove LegacyMd5Plugin from S3AsyncService Signed-off-by: Craig Perkins <[email protected]> * Fix tests related to sdk upgrade Signed-off-by: Craig Perkins <[email protected]> * Address review comments Signed-off-by: Craig Perkins <[email protected]> * Update sha files Signed-off-by: Craig Perkins <[email protected]> * Revert "Update sha files" This reverts commit 6023298. Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
Description
This PR fixes an issue where the
repository-s3plugin is not working in OpenSearch 3.x with s3-compatible repositories. The reason its not working is due to the mandatory inclusion of checksum trailing headersSee also: #19124
The gist of this fix is in
S3ServiceandS3AsyncServiceto build the S3Client with the following settings:This will add the trailing checksum headers when required by the repository and optionally leave them out if the repository does not require these headers.
Related Issues
Resolves #18240
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.