Skip to content

Add setDefaultCloudStorageConfiguration#2159

Merged
michaelbausor merged 4 commits intogoogleapis:masterfrom
jean-philippe-martin:default_nio_settings
Jul 6, 2017
Merged

Add setDefaultCloudStorageConfiguration#2159
michaelbausor merged 4 commits intogoogleapis:masterfrom
jean-philippe-martin:default_nio_settings

Conversation

@jean-philippe-martin
Copy link

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.

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://..."))).
CloudStorageFileSystemProvider.setStorageOptions(LocalStorageHelper.getOptions());
}

@Test

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

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

@coveralls
Copy link

Coverage Status

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

@coveralls
Copy link

Coverage Status

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

@droazen
Copy link

droazen commented Jun 20, 2017

@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.

@droazen
Copy link

droazen commented Jun 20, 2017

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!

* filesystem object with the right configuration and pass it along.
*
* @param newDefault new default CloudStorageConfiguration
*/

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

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

@garrettjonesgoogle
Copy link
Member

@shinfan could you take a look?

Copy link
Contributor

@shinfan shinfan left a comment

Choose a reason for hiding this comment

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

LGTM

@jean-philippe-martin
Copy link
Author

Thank you very much!

Copy link

@droazen droazen left a comment

Choose a reason for hiding this comment

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

👍 LGTM as well

@droazen
Copy link

droazen commented Jun 27, 2017

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?

@jean-philippe-martin
Copy link
Author

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

@jean-philippe-martin
Copy link
Author

Or @garrettjonesgoogle? Help?

@droazen
Copy link

droazen commented Jul 6, 2017

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!

@garrettjonesgoogle
Copy link
Member

@michaelbausor could you finish this up?

@michaelbausor
Copy link
Contributor

Rerunning Travis now

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

droazen commented Jul 7, 2017

Thanks!

chingor13 pushed a commit that referenced this pull request Feb 20, 2026
…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 <suztomo@google.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants