GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Retry in more situations by jean-philippe-martin · Pull Request #2239 · googleapis/google-cloud-java

Conversation

@jean-philippe-martin

@jean-philippe-martin jean-philippe-martin commented Jul 14, 2017

Copy link
Copy Markdown

Change the code to retry in more situations (when copying or deleting files, checking file permissions, or reading file size). Also give a comprehensive exception message when we run out of retries, to make it abundantly clear that retries were attempted.

Those aggressive retries only happen if the user has set the MaxChannelReopens option. If unset, we still get the nicer error message but they'll say something like "All 0 reopens failed."

Note that this doesn't affect the normal retries done at a lower level by the cloud.storage.Storage object.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot

googlebot commented Jul 14, 2017

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jul 14, 2017
@jean-philippe-martin jean-philippe-martin mentioned this pull request Jul 14, 2017
google-cloud-java: CloudStorageReadChannel.create() does a GCS access outside of the retry mechanism in CloudStorageReadChannel.read() broadinstitute/gatk#3253
Closed
@jean-philippe-martin
Retry in more situations
781d82c
Change the code to retry in more situations (when copying or deleting
files, checking file permissions, or reading file size). Also give a
comprehensive exception message when we run out of retries, to make it
abundantly clear that retries were attempted.

Those aggressive retries only happen if the user has set the
MaxChannelReopens option. If unset, we still get the nicer error message
but they'll say something like "All 0 reopens failed."

Note that this doesn't affect the normal retries done at a lower level
by the cloud.storage.Storage object.
@jean-philippe-martin
jean-philippe-martin force-pushed the jp_retry_CloudStorageReadChannel_fetchSize branch from e53e488 to 781d82c Compare July 14, 2017 23:15
@googlebot

googlebot commented Jul 14, 2017

Copy link
Copy Markdown

CLAs look good, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jul 14, 2017
droazen
droazen suggested changes Jul 18, 2017
View reviewed changes

@droazen droazen left a comment

Copy link
Copy Markdown

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.

Two comments to address (including one major issue in CloudStorageFileSystemProvider.copy()), otherwise looks good!

We've been running at scale with a variant of this patch, and have found that it completely clears up the intermittent 503/SSL errors when accessing GCS via google-cloud-nio that have been plaguing us for so long!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...d-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
if (!setContentDisposition) {
tgtInfoBuilder.setContentDisposition(blobInfo.getContentDisposition());
CopyWriter copyWriter = storage.copy(copyReqBuilder.build());
copyWriter.getResult();

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...e-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageRetryHandler.java
public void handleRetryForStorageException(final StorageException exs) throws StorageException {
if (!isRetryable(exs)) {
throw exs;
}

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@droazen droazen mentioned this pull request Jul 18, 2017
CloudStorageReadChannel: more detailed error messages #2219
Closed
@droazen droazen mentioned this pull request Jul 27, 2017
google-cloud-nio: retry in more situations upon retryable errors #2281
Merged
@droazen

droazen commented Jul 27, 2017

Copy link
Copy Markdown

Replaced by #2281, which addresses the issues raised above (@jean-philippe-martin is away for a month, which is why we chose to open a new PR). This can be closed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jean-philippe-martin

jean-philippe-martin commented Aug 21, 2017

Copy link
Copy Markdown
Author

closing, we should merge #2281 instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jean-philippe-martin jean-philippe-martin closed this Aug 21, 2017
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
5352a7d
…cies to v3.15.0 (#2239)
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@mpeddada1
chore: add JDK 25 to the CI build (googleapis#2239)
a0788ad
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@renovate-bot
deps: update sdk platform java dependencies (#2239)
8f4f855
meltsufin pushed a commit that referenced this pull request May 1, 2026
@renovate-bot
deps: update sdk platform java dependencies (#2239)
ddc5a12
meltsufin pushed a commit that referenced this pull request May 2, 2026
@cloud-java-bot
chore: Update generation configuration at Sat Oct 4 02:24:31 UTC 2025 (…
ad30cb4
…#2239)

* chore: Update generation configuration at Thu Sep 25 02:29:21 UTC 2025

* chore: Update generation configuration at Sat Sep 27 02:24:05 UTC 2025

* chore: Update generation configuration at Tue Sep 30 02:25:54 UTC 2025

* chore: generate libraries at Tue Sep 30 02:26:32 UTC 2025

* chore: Update generation configuration at Wed Oct  1 02:31:59 UTC 2025

* chore: Update generation configuration at Thu Oct  2 02:27:17 UTC 2025

* chore: Update generation configuration at Fri Oct  3 02:26:42 UTC 2025

* chore: generate libraries at Fri Oct  3 02:27:20 UTC 2025

* chore: Update generation configuration at Sat Oct  4 02:24:31 UTC 2025
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@igorbernstein2 @gcf-owl-bot
fix: retry INTERNAL retriable auth errors (googleapis#2239)
d350433
* fix: retry INTERNAL retriable auth errors

Change-Id: I3939a89d40ecd4304bccaf0340fe169d6a083712

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@release-please
chore(main): release 2.39.3 (googleapis#2240)
bdc09d1
🤖 I have created a release *beep* *boop*
---


## [2.39.3](https://togithub.com/googleapis/java-bigtable/compare/v2.39.2...v2.39.3) (2024-05-21)


### Bug Fixes

* Retry INTERNAL retriable auth errors ([googleapis#2239](https://togithub.com/googleapis/java-bigtable/issues/2239)) ([d350433](https://togithub.com/googleapis/java-bigtable/commit/d350433e03c38393e9a4e89ee3cec70409a947ea))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@droazen droazen droazen requested changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@jean-philippe-martin @googlebot @droazen
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.