Skip to content

Conversation

@nicktindall
Copy link
Contributor

@nicktindall nicktindall commented Mar 5, 2025

Upgraded to com.google.cloud:google-cloud-storage-bom:2.50.0

This is the first release that includes the fix for googleapis/java-storage#2972, which breaks our build because of the randomised locale.

@nicktindall nicktindall requested a review from a team as a code owner March 5, 2025 01:59
@nicktindall nicktindall marked this pull request as draft March 5, 2025 02:00
identification within third-party archives.

Copyright 1999-2005 The Apache Software Foundation
Copyright [yyyy] [name of copyright owner]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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()));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new client is stricter about receiving a content-length

@nicktindall nicktindall marked this pull request as ready for review March 17, 2025 04:55
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Mar 17, 2025
@nicktindall nicktindall added >feature :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs and removed needs:triage Requires assignment of a team area label labels Mar 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Mar 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@elasticsearchmachine
Copy link
Collaborator

Hi @nicktindall, I've created a changelog YAML for you.

@nicktindall nicktindall added >upgrade and removed >feature Team:Distributed Coordination Meta label for Distributed Coordination team labels Mar 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Mar 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @nicktindall, I've updated the changelog YAML for you.

@nicktindall nicktindall requested a review from mhl-b March 17, 2025 06:10
throw storageException;
}
throw e;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative to this is something like

catch (IOException | StorageException e) {
    StorageException se = (StorageException) ExceptionHelper.unwrap(e, StorageException.class);
    if (se != null) {
        // do StorageException-specific things
    }
}

in both catch blocks

// Also retry on `SocketException`s
if (ExceptionsHelper.unwrap(prevThrowable, SocketException.class) != null) {
return true;
}
Copy link
Contributor Author

@nicktindall nicktindall Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something has changed at the HTTP call sites and we now get BaseStorageExceptions propagate with cause SocketException and retryable=false. The legacy retry strategy relies on retryable flag so we need to manually intervene here.

I think this is a sign we should be making moves towards DefaultStorageRetryStrategy as I think it would be handled correctly there.

Actually that's worse.

Copy link
Contributor

@mhl-b mhl-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nicktindall nicktindall merged commit 073ca0e into elastic:main Mar 26, 2025
17 checks passed
@nicktindall nicktindall deleted the ES-9287_upgrade_to_latest_GCS_SDK branch March 26, 2025 00:08
nicktindall added a commit to nicktindall/elasticsearch that referenced this pull request Mar 27, 2025
nicktindall added a commit to nicktindall/elasticsearch that referenced this pull request Mar 28, 2025
nicktindall added a commit to nicktindall/elasticsearch that referenced this pull request Mar 28, 2025
nicktindall added a commit to nicktindall/elasticsearch that referenced this pull request Mar 28, 2025
nicktindall added a commit that referenced this pull request Mar 28, 2025
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
Upgrades google cloud SDK used by repository-gcp to com.google.cloud:google-cloud-storage-bom:2.50.0

Closes: ES-9287
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
nicktindall added a commit to nicktindall/elasticsearch that referenced this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team >upgrade v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants