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 — Add setDefaultCloudStorageConfiguration by jean-philippe-martin · Pull Request #2159 · googleapis/google-cloud-java

Conversation

@jean-philippe-martin

@jean-philippe-martin jean-philippe-martin commented Jun 16, 2017

Copy link
Copy Markdown

This allows the main program to set default options that will be used
by all subsequent filesystem objects. This is useful for a main program
that has libraries that create their own Path objects via the
recommended way (Paths.get(URI.create("gs://..."))), so the main
program can set eg. retry options for everyone to use.

Sorry, something went wrong.

Uh oh!

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

All reactions
@jean-philippe-martin
Add setDefaultCloudStorageConfiguration
3e051fa
This allows the main program to set default options that will be used
by all subsequent filesystem objects. This is useful for a main program
that has libraries that create their own Path objects via the
recommended way (Paths.get(URI.create("gs://..."))).
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 16, 2017
@jean-philippe-martin jean-philippe-martin mentioned this pull request Jun 16, 2017
Allow retry settings to be set globally in google-cloud-java, rather than per-Path broadinstitute/gatk#3120
Closed
droazen
droazen reviewed Jun 16, 2017
View reviewed changes
Comment thread ...cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemTest.java
CloudStorageFileSystemProvider.setStorageOptions(LocalStorageHelper.getOptions());
}

@Test

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.

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.

@jean-philippe-martin
Check default propagates to open channel
18e4574
@coveralls

coveralls commented Jun 16, 2017

Copy link
Copy Markdown

Coverage increased (+0.03%) to 81.218% when pulling 3e051fa on jean-philippe-martin:default_nio_settings into 7c20c6f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jean-philippe-martin
Test NIO reopen defaults are overridable
22a0f2a
@coveralls

coveralls commented Jun 16, 2017

Copy link
Copy Markdown

Coverage increased (+0.03%) to 81.218% when pulling 22a0f2a on jean-philippe-martin:default_nio_settings into 7c20c6f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coveralls

coveralls commented Jun 16, 2017

Copy link
Copy Markdown

Coverage increased (+0.03%) to 81.218% when pulling 22a0f2a on jean-philippe-martin:default_nio_settings into 7c20c6f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@droazen

droazen commented Jun 20, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

@jean-philippe-martin Would you be able to build a snapshot of GATK built against this branch, modify it to use the new global config mechanism, and confirm in a debugger (or via printed debug output) that the setting for both retries and reopens is propagating all the way down to CloudStorageReadChannel? Would also be good to run your ExtremeReadsTest in that branch and see if you still get SSL errors.

All reactions

Sorry, something went wrong.

Uh oh!

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

@droazen

droazen commented Jun 20, 2017

Copy link
Copy Markdown

Thank you for implementing this by the way @jean-philippe-martin -- really hoping that we can get both this PR and the infinite recursion fix in #2124 merged in time for the next google-cloud-java release!

All reactions

Sorry, something went wrong.

Uh oh!

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

droazen
droazen reviewed Jun 20, 2017
View reviewed changes
Comment thread ...d-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
* filesystem object with the right configuration and pass it along.
*
* @param newDefault new default CloudStorageConfiguration
*/

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.

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.

@jean-philippe-martin
Improve description of default overriding
c099a02
@coveralls

coveralls commented Jun 26, 2017

Copy link
Copy Markdown

Coverage decreased (-0.05%) to 81.142% when pulling c099a02 on jean-philippe-martin:default_nio_settings into 7c20c6f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@garrettjonesgoogle

garrettjonesgoogle commented Jun 26, 2017

Copy link
Copy Markdown
Contributor

@shinfan could you take a look?

All reactions

Sorry, something went wrong.

Uh oh!

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

@garrettjonesgoogle
garrettjonesgoogle requested a review from shinfan June 26, 2017 20:15
shinfan
shinfan approved these changes Jun 26, 2017
View reviewed changes

@shinfan shinfan left a comment

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@jean-philippe-martin

jean-philippe-martin commented Jun 26, 2017

Copy link
Copy Markdown
Author

Thank you very much!

All reactions

Sorry, something went wrong.

Uh oh!

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

droazen
droazen approved these changes Jun 27, 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.

👍 LGTM as well

Sorry, something went wrong.

Uh oh!

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

All reactions
@droazen

droazen commented Jun 27, 2017

Copy link
Copy Markdown

The travis build failed with "The job exceeded the maximum time limit for jobs" in one of the builds -- possibly this is a transient failure, rather than anything to do with this change? Could we re-run the travis build @jean-philippe-martin?

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 Jun 27, 2017

Copy link
Copy Markdown
Author

@droazen I cannot rerun it myself, it'll have to be someone from the gcloud team (@shinfan ?)

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 Jun 28, 2017

Copy link
Copy Markdown
Author

Or @garrettjonesgoogle? Help?

All reactions

Sorry, something went wrong.

Uh oh!

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

@droazen

droazen commented Jul 6, 2017

Copy link
Copy Markdown

Could we please get a re-run on the Travis CI build for this branch? The failure looks transient/unrelated to this PR, and the PR has otherwise been approved. We'd really love to see this one merged!

All reactions

Sorry, something went wrong.

Uh oh!

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

@garrettjonesgoogle

garrettjonesgoogle commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

@michaelbausor could you finish this up?

All reactions

Sorry, something went wrong.

Uh oh!

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

@michaelbausor

michaelbausor commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

Rerunning Travis now

All reactions

Sorry, something went wrong.

Uh oh!

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

@michaelbausor
michaelbausor merged commit 19262b7 into googleapis:master Jul 6, 2017
@droazen

droazen commented Jul 7, 2017

Copy link
Copy Markdown

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

chingor13 pushed a commit that referenced this pull request Feb 20, 2026
@gcf-owl-bot @suztomo
chore: Java 8 unit test to build code in Java 17 and run tests on Jav…
fce8126
…a 8 (#1800) (#2159)

* chore: Java 8 unit test to build code in Java 17 and run tests on Java 8 (#1800)

* Our Java projects are configured to produce Java 8-compatible bytecode via https://github.com/googleapis/java-shared-config/blob/main/pom.xml#L848. This unit test change ensures this config is applied correctly.

* This change also switches the JDK distribution of GitHub Actions to temurin from zulu.

* For the repositories that mark "dependencies (8)" and "dependencies (11)" as required, they should point to only "dependencies (17)" via `.github/sync-repo-settings.yaml` and repo's Settings tab.
Source-Link: googleapis/synthtool@cbe0100
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7

* dependencies (17)

* unit 8 build

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tomo Suzuki <[email protected]>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@release-please
chore(main): release 2.32.0 (googleapis#2159)
f1843ec
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@jean-philippe-martin @michaelbausor
Add setDefaultCloudStorageConfiguration (#2159)
47fd983
* Add setDefaultCloudStorageConfiguration

This allows the main program to set default options that will be used
by all subsequent filesystem objects. This is useful for a main program
that has libraries that create their own Path objects via the
recommended way (Paths.get(URI.create("gs://..."))).

* Check default propagates to open channel

* Test NIO reopen defaults are overridable

* Improve description of default overriding
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@jean-philippe-martin @michaelbausor
Add setDefaultCloudStorageConfiguration (#2159)
b30002c
* Add setDefaultCloudStorageConfiguration

This allows the main program to set default options that will be used
by all subsequent filesystem objects. This is useful for a main program
that has libraries that create their own Path objects via the
recommended way (Paths.get(URI.create("gs://..."))).

* Check default propagates to open channel

* Test NIO reopen defaults are overridable

* Improve description of default overriding
meltsufin pushed a commit that referenced this pull request May 2, 2026
@renovate-bot
deps: update dependency com.google.cloud.opentelemetry:exporter-trace…
ae09ba8
… to v0.36.0 (#2159)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shinfan shinfan shinfan approved these changes
+1 more reviewer
@droazen droazen droazen approved these 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.

7 participants

@jean-philippe-martin @coveralls @droazen @garrettjonesgoogle @michaelbausor @shinfan @googlebot
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.