GeezerVison is showing github.com — chore: remove session pool and only use multiplexed sessions by olavloite · Pull Request #4191 · googleapis/java-spanner
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Conversation
olavloite
commented
Oct 31, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Remove SessionPool
Removes the SessionPool from the client. The client now only uses a single multiplexed session for all operations. This is already the default behavior for this client, but after this change, it is no longer possible to enable the use of regular sessions.
Observability: Num Sessions on Spanner Lower
After this change, the client does not create and initialize a session pool when it is created. This means that the number of sessions that is observed on Spanner will be much lower, as each DatabaseClient only creates 1 multiplexed session.
Code Changes
This removes the SessionPool and related classes and deprecates the SessionPoolOptions class. This simplifies large parts of the code, as the only possible code path is the use of multiplexed sessions. The removed classes are all internal classes.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Removes the SessionPool and related classes and deprecates the SessionPoolOptions class.
This simplifies large parts of the code, as the only possible code path is the use of
multiplexed sessions.
|
Warning: This pull request is touching the following templated files:
- .github/workflows/ci.yaml
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
rahul2393
commented
Jan 13, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Cherry picked the changes here #4300
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
grpc-gcp is likely to repeatedly select the same channel if multiple requests
are being sent at the same time. This caused the ChannelUsageTest to (randomly)
fail, as it executed multiple requests in parallel. The test is now changed to
execute the requests sequentially to trigger random channel selection.
Reviewers
1 more reviewer
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
api: spanner
Issues related to the googleapis/java-spanner API.
size: xl
Pull request size is extra large.
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.
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.
|