Closed
Conversation
…on to (googleapis#1645)". Compression is not fully supported in gRPC, can't have it in the library yet. This reverts commit a599972.
…Consumer interface, it really is no useful to be able to set an exception as ack reply, since the result is the same as nack, if we ever require another result then we can just add one more value to the AckReply enum. Also adding a fail-safe catch so if the receiver ever throws an exception we will interpret that as a nack and keep going.
This prevents the library extending messages infinitevely if the user code has lost track of the ack consumer handle.
the next extension surpasses it.
user code
- Separated the handling of batched received messages from the
per-message dispatching of message to the user code. In order to
accomplish this I had to keep the batch in memory while the processing
of each message will draw from the in-memory batch until completely
depleted.
- Drawing flow controller permits on a per message basis (used to
try to draw permits for the whole batch potentially deadlocking the
whole subscriber), this addresses the deadlock condition raised here
googleapis#1868
- No longer using blocking flow controller, instead pausing and
resuming pulls/streamed-messages based on the flow controller
feedback and when new permits become available.
- A separate executor for alarms (2 threads in it has showed up to
scale pretty well with many subscriber, given our ack operations
are pretty lightweight)
- Setting the maximum of messages to pull per request based on the
number requested by the user in the flow controller (if any), this
in a best effort addresses
googleapis#1868
Fixes googleapis#1868, fixes googleapis#1865 and fixes googleapis#1855
Author
|
I'm dropping this PR and have it reviewed in my repo first by the team to then merge it here. |
meltsufin
pushed a commit
that referenced
this pull request
Dec 22, 2025
* chore(main): release 3.23.8 * chore: generate libraries at Thu Nov 13 19:28:54 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <[email protected]>
chingor13
pushed a commit
that referenced
this pull request
Feb 24, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 11, 2026
* chore(main): release 3.23.8 * chore: generate libraries at Thu Nov 13 19:28:54 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <[email protected]>
chingor13
pushed a commit
that referenced
this pull request
Mar 12, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
* feat(spanner): jdbc support for spanner external host * added unit tests for the new introduced pattern
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
🤖 I have created a release *beep* *boop* --- ## [2.26.0](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.25.3...v2.26.0) (2025-01-11) ### Features * Support for spanner external host ([googleapis#1884](https://togithub.com/googleapis/java-spanner-jdbc/issues/1884)) ([71c0b81](https://togithub.com/googleapis/java-spanner-jdbc/commit/71c0b81c130f3b69f04b12b4e2c03b97933d028b)) ### Dependencies * Update dependency com.google.api.grpc:proto-google-cloud-trace-v1 to v2.56.0 ([googleapis#1887](https://togithub.com/googleapis/java-spanner-jdbc/issues/1887)) ([4e122d6](https://togithub.com/googleapis/java-spanner-jdbc/commit/4e122d6bd8dabf5e8d5219549949d56397e29194)) * Update dependency com.google.cloud:google-cloud-spanner-bom to v6.85.0 ([googleapis#1889](https://togithub.com/googleapis/java-spanner-jdbc/issues/1889)) ([3cbf0b6](https://togithub.com/googleapis/java-spanner-jdbc/commit/3cbf0b699d1b2e9c8a5c6393f309d5c0f627688a)) * Update dependency com.google.cloud:google-cloud-trace to v2.56.0 ([googleapis#1888](https://togithub.com/googleapis/java-spanner-jdbc/issues/1888)) ([ca6dd76](https://togithub.com/googleapis/java-spanner-jdbc/commit/ca6dd7601ed8750b67a2e9983b671458a4285bcf)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([googleapis#1886](https://togithub.com/googleapis/java-spanner-jdbc/issues/1886)) ([4c6c59e](https://togithub.com/googleapis/java-spanner-jdbc/commit/4c6c59efbee96c416f9fc735da031c2a16262e39)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@tbkneeland @kamalaboulhosn PTAL