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 — 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

@olavloite olavloite commented Oct 31, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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.

All reactions
olavloite added 2 commits September 27, 2025 16:12
@olavloite
chore: remove session pool implementation
89a99b2
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.
@olavloite
Merge branch 'main' into remove-session-pool
66e9b92
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. api: spanner Issues related to the googleapis/java-spanner API. labels Oct 31, 2025
@generated-files-bot

generated-files-bot Bot commented Oct 31, 2025

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • .github/workflows/ci.yaml
All reactions

Sorry, something went wrong.

Uh oh!

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

@olavloite
Merge branch 'main' into remove-session-pool
579abba
@olavloite
olavloite force-pushed the remove-session-pool branch from b89fd14 to 579abba Compare October 31, 2025 13:20
@olavloite
olavloite marked this pull request as ready for review October 31, 2025 13:20
@olavloite
olavloite requested review from a team October 31, 2025 13:20
@olavloite
Merge branch 'main' into remove-session-pool
32cdba7
@olavloite
olavloite force-pushed the remove-session-pool branch from 16086a1 to 32cdba7 Compare November 20, 2025 10:53
rahul2393
rahul2393 previously approved these changes Nov 20, 2025
View reviewed changes
@sakthivelmanii sakthivelmanii added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 20, 2025
@rahul2393

rahul2393 commented Jan 13, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Cherry picked the changes here #4300

All reactions

Sorry, something went wrong.

Uh oh!

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

@olavloite
Merge branch 'main' into remove-session-pool
ad35e2a
@olavloite
olavloite dismissed rahul2393’s stale review via ad35e2a January 13, 2026 07:28
olavloite added 2 commits January 13, 2026 13:33
@olavloite
test: modify ChannelUsageTest to comply with grpc-gcp behavior'
c3f29e0
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.
@olavloite
chore: some additional cleanup
11cf721
@olavloite olavloite removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 13, 2026
rahul2393
rahul2393 approved these changes Jan 13, 2026
View reviewed changes
@olavloite
olavloite merged commit 9cd296e into main Jan 23, 2026
@olavloite
olavloite deleted the remove-session-pool branch January 23, 2026 11:15
@rahul2393 rahul2393 mentioned this pull request Feb 19, 2026
spanner: Multiplexed sessions are broken with Spanner Emulator. googleapis/google-cloud-go#13331
Closed
@cgati cgati mentioned this pull request Apr 7, 2026
[spanner]: MultiplexedSessionDatabaseClient.CHANNEL_USAGE static HashMap leaks SpannerImpl instances on close googleapis/google-cloud-java#12693
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@rahul2393 rahul2393 rahul2393 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

api: spanner Issues related to the googleapis/java-spanner API. size: xl Pull request size is extra large.

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.

3 participants

@olavloite @rahul2393 @sakthivelmanii
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.