-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Upgrade to latest GCS SDK #124062
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
nicktindall
merged 23 commits into
elastic:main
from
nicktindall:ES-9287_upgrade_to_latest_GCS_SDK
Mar 26, 2025
Merged
Upgrade to latest GCS SDK #124062
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a832dba
Kinda working
nicktindall ecaa5be
Fix mock handler headers for resumable upload
nicktindall 946f9ac
Remove not-missing classes
nicktindall df9eaff
Fix handling of 410 gone, change of default chunk size
nicktindall 41497ff
Merge branch 'main' into ES-9287_upgrade_to_latest_GCS_SDK
nicktindall 87ae6f9
Dependencies are mostly implementation?
nicktindall 43123ac
Describe ignoreMissingClasses
nicktindall df952dc
Bump to google-cloud-storage-bom 2.50.0 (to include bugfix). Minor ti…
nicktindall 88f276c
Minimise change to verification-metadata.xml
nicktindall 8a8eb57
Fix handling of HTTP_GONE response
nicktindall b9440cb
Merge branch 'main' into ES-9287_upgrade_to_latest_GCS_SDK
nicktindall 6d8b72a
Remove redundant verification-metadata.xml entries
nicktindall 36a0620
Minimise dependency configurations
nicktindall 437456c
Update tests/constant to reflect new chunk size
nicktindall 39f973e
Unwrap StorageException in our wrapper to simplify retry logic
nicktindall 31e4f9b
Update docs/changelog/124062.yaml
nicktindall 2989333
Update docs/changelog/124062.yaml
nicktindall 6222704
More detail in summary text
nicktindall d1de464
Merge branch 'main' into ES-9287_upgrade_to_latest_GCS_SDK
nicktindall 44810e9
Retry on all SocketExceptions
nicktindall 8636aaa
Merge branch 'main' into ES-9287_upgrade_to_latest_GCS_SDK
nicktindall 828334b
Remove test logging
nicktindall bd4cc24
Merge remote-tracking branch 'origin/main' into ES-9287_upgrade_to_la…
nicktindall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| Checker Framework qualifiers | ||
| Copyright 2004-present by the Checker Framework developers | ||
|
|
||
| MIT License: | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| THE SOFTWARE. |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Empty file.
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
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -253,7 +253,7 @@ public void handle(final HttpExchange exchange) throws IOException { | |
| if (updateResponse.rangeHeader() != null) { | ||
| exchange.getResponseHeaders().add("Range", updateResponse.rangeHeader().headerString()); | ||
| } | ||
| exchange.getResponseHeaders().add("Content-Length", "0"); | ||
| exchange.getResponseHeaders().add("x-goog-stored-content-length", String.valueOf(updateResponse.storedContentLength())); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new client is stricter about receiving a content-length |
||
| exchange.sendResponseHeaders(updateResponse.statusCode(), -1); | ||
| } else { | ||
| exchange.sendResponseHeaders(RestStatus.NOT_FOUND.getStatus(), -1); | ||
|
|
||
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
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.
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 is really the
LICENSE: https://github.com/open-telemetry/opentelemetry-java/blob/main/LICENSE