GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — feat(grpc-gcp): Add shared fallback state and probing recovery options to GcpFallbackChannel by kinsaurralde · Pull Request #14013 · googleapis/google-cloud-java Conversation
Contributor
This is in preparation of spanner adding a probe and recovery policy. Currently in spanner, GcpFallbackChannel is at the pool level. However for probing and recovery we need each channel to be probed. This shared state allows switching GcpFallbackChannel to be at the channel level (with each object holding 1 directpath and 1 cloudpath) while having the fallback policy move all channels together Using probes for recovery is an option that will be disabled by default to match current condition.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…ns to GcpFallbackChannel
Contributor
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. Code ReviewThis pull request introduces
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
kinsaurralde
marked this pull request as ready for review
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces a shared state mechanism (
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces GcpFallbackState to coordinate failover, recovery, and periodic error evaluation across a pool of GcpFallbackChannel instances, allowing them to share state and background executors. Feedback on the changes highlights two issues in GcpFallbackChannel where directly checking fallbackState.isInFallbackMode() instead of isInFallbackMode() leads to incorrect behavior when fallbackChannel is null. Specifically, this prevents the channel from tracking primary successes and failures, and results in unnecessary primary channel probing when fallback is not possible.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces GcpFallbackState to coordinate failover, recovery, and periodic error evaluation across a pool of GcpFallbackChannel instances, allowing channels to share fallback evaluation and probing tasks. It also updates GcpFallbackChannelOptions and adds comprehensive unit tests. The review feedback suggests several improvements to enhance robustness and maintainability, including removing a misleading @VisibleForTesting annotation from a constructor used in production, logging swallowed exceptions in callbacks and scheduled tasks to aid debugging, simplifying redundant atomic operations inside synchronized blocks, and adding input validation for probe success counts and durations.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. Code ReviewThis pull request introduces GcpFallbackState to coordinate failover, recovery, and periodic error evaluation across a pool of GcpFallbackChannel instances. It updates GcpFallbackChannel and GcpFallbackChannelOptions to support sharing this state and executor services, and adds corresponding unit tests. Feedback on the changes highlights a Java 8 compatibility issue in GcpFallbackState.java where Duration.isNegative() is used, which is a Java 9 method and should be replaced with a toNanos() > 0 check.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
rahul2393
approved these changes
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
olavloite
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
olavloite
approved these changes
Contributor
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. Approving, so you are not blocked on this further, but please take a look at the comments before merging.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
blakeli0
pushed a commit
that referenced
this pull request
🤖 I have created a release *beep* *boop* --- <details><summary>1.93.0</summary> ## [1.93.0](v1.92.0...v1.93.0) (2026-09-30) ### ⚠ BREAKING CHANGES * **automl:** remove java-automl library ([#14540](#14540)) ### Features * **automl:** remove java-automl library ([#14540](#14540)) ([6f13a1d](6f13a1d)) * **bigquery-jdbc:** infer undeclared fields in PreparedStatement ([#14400](#14400)) ([e989a72](e989a72)) * **gax,gapic-generator-java:** retry start upload call and rename ResumableUploadCallSettings to ResumableUploadOptions ([#14511](#14511)) ([98c2073](98c2073)) * **gax:** add chunk upload recovery loop for resumable uploads ([#14424](#14424)) ([8ecd1e5](8ecd1e5)) * **gax:** add ResumableUploadProgressListener and related infrastructure ([#14426](#14426)) ([c7f10d8](c7f10d8)) * **gax:** add RewindableStreamBuffer in prep for chunk upload recovery ([#14423](#14423)) ([349c315](349c315)) * **gax:** enforce global timeout for resumable uploads ([#14425](#14425)) ([3cb9805](3cb9805)) * **gax:** include upload-status header in resumable upload command response objects ([#14420](#14420)) ([23e49c1](23e49c1)) * **gax:** replace InputStream with InputStreamSupplier in resumable upload public surfaces ([#14521](#14521)) ([3c79730](3c79730)) * **gax:** retry chunk upload on transient errors ([#14422](#14422)) ([e72365e](e72365e)) * **gax:** treat resumable upload server rejection as terminal ([#14516](#14516)) ([b288788](b288788)) * **gax:** wire up ResumableUploadProgressTracker ([#14427](#14427)) ([e7ba3e8](e7ba3e8)) * **grpc-gcp:** Add shared fallback state and probing recovery options to GcpFallbackChannel ([#14013](#14013)) ([675f639](675f639)) * **pubsub:** add publish start time to client telemetry header ([#14496](#14496)) ([4b6a671](4b6a671)) ### Bug Fixes * **auth:** exclude javax.annotation-api from api-common dependency ([#14538](#14538)) ([668fd18](668fd18)), refs [#12363](#12363) * **bigquery-jdbc:** abort session when connection is closed ([#14273](#14273)) ([5bd4520](5bd4520)), refs [#13922](#13922) * **storage:** add App Hub storage.googleapis.com prefix to destination.id ([#14527](#14527)) ([0f6f9b5](0f6f9b5)) ### Documentation * Add gRPC Post-Quantum Cryptography Guide ([#14245](#14245)) ([340a239](340a239)) * **samples:** add zonal bucket pre-warmed writer pool sample ([#14517](#14517)) ([32e6f87](32e6f87)) * **samples:** pre-warm writer pool channels with flush() after open() ([#14537](#14537)) ([df06290](df06290)) * update PQC guide to follow standard template format ([#14333](#14333)) ([0b969d5](0b969d5)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- 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
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |