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 — feat: support multiplexed session for blind write with single use transaction by pratickchokhani · Pull Request #3229 · googleapis/java-spanner

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@pratickchokhani

@pratickchokhani pratickchokhani commented Jul 30, 2024 •
edited by olavloite
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

With multiplexed sessions, the client optimizes and runs multiple applicable requests concurrently on a single session. A single multiplexed session is sufficient to handle all concurrent writeAtLeastOnce requests.

Normal read/write transactions always use regular sessions.

The use of multiplexed sessions can be enabled through the environment variable GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS.

Sorry, something went wrong.

Uh oh!

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

All reactions
Pratick Chokhani added 2 commits July 30, 2024 13:58
Pratick Chokhani
feat(spanner): support multiplexed session for blind write with singl…
3cf0cd4
…e use transaction.
Pratick Chokhani
test(spanner): added test for the support of multiplexed session for …
4863532
…blind writes (writeAtLeastOnce)
@pratickchokhani
pratickchokhani requested a review from a team July 30, 2024 09:31
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/java-spanner API. labels Jul 30, 2024
Pratick Chokhani added 2 commits July 30, 2024 15:11
Pratick Chokhani
chore(spanner): lint
8ebd521
Pratick Chokhani
Merge branch 'main' of https://github.com/googleapis/java-spanner int…
9bb6022
…o blind-write

# Conflicts:
#	google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java
@pratickchokhani pratickchokhani assigned olavloite Jul 30, 2024
@olavloite olavloite changed the title feat(spanner): support multiplexed session for blind write with single use transaction feat: support multiplexed session for blind write with single use transaction Aug 1, 2024
olavloite
olavloite reviewed Aug 1, 2024
View reviewed changes
Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClientImpl.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClientImpl.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClientImpl.java Resolved

Uh oh!

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

Comment thread ...oud-spanner/src/main/java/com/google/cloud/spanner/DelayedMultiplexedSessionTransaction.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java Resolved

Uh oh!

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

Comment thread ...r/src/test/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClientMockServerTest.java Resolved

Uh oh!

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

Pratick Chokhani
fix(spanner): updated the adoption for blind write into GOOGLE_CLOUD_…
5b3c673
…SPANNER_MULTIPLEXED_SESSIONS.
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Aug 8, 2024
@olavloite
chore: simplify code to make it easier to reuse for later additions
0efb264
olavloite
olavloite approved these changes Aug 19, 2024
View reviewed changes
@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 19, 2024
Pratick Chokhani added 3 commits September 16, 2024 16:33
Pratick Chokhani
Merge branch 'main' of https://github.com/googleapis/java-spanner int…
5056e63
…o blind-write
Pratick Chokhani
Merge branch 'blind-write' of github.com:pratickchokhani/java-spanner…
60e45cc
… into blind-write
Pratick Chokhani
feat(spanner): added flag to control use of multiplexed session for b…
341d959
…lind write. This flag will be used by systest.
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Sep 16, 2024
@pratickchokhani pratickchokhani removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 16, 2024
olavloite
olavloite approved these changes Sep 17, 2024
View reviewed changes

@olavloite olavloite left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, with some minor nits on documentation.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java Resolved

Uh oh!

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

Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java Resolved

Uh oh!

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

Comment thread ...-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/SessionPoolOptionsHelper.java Resolved

Uh oh!

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

Pratick Chokhani
lint(spanner): javadoc fixes.
ad4370d
@pratickchokhani
pratickchokhani merged commit b3e2b0f into googleapis:main Sep 17, 2024
@release-please release-please Bot mentioned this pull request Sep 17, 2024
chore(main): release 6.75.0 #3336
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Sep 19, 2024
@release-please
chore(main): release 6.75.0 (#3336)
216e18e
🤖 I have created a release *beep* *boop*
---


## [6.75.0](https://togithub.com/googleapis/java-spanner/compare/v6.74.1...v6.75.0) (2024-09-19)


### Features

* Support multiplexed session for blind write with single use transaction ([#3229](https://togithub.com/googleapis/java-spanner/issues/3229)) ([b3e2b0f](https://togithub.com/googleapis/java-spanner/commit/b3e2b0f4892951867715cb7f354c089fca4f050f))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
lqiu96 pushed a commit that referenced this pull request Sep 19, 2024
@pratickchokhani @olavloite @lqiu96
feat: support multiplexed session for blind write with single use tra…
ff89e49
…nsaction (#3229)

* feat(spanner): support multiplexed session for blind write with single use transaction.

* test(spanner): added test for the support of multiplexed session for blind writes (writeAtLeastOnce)

* chore(spanner): lint

* fix(spanner): updated the adoption for blind write into GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS.

* chore: simplify code to make it easier to reuse for later additions

* feat(spanner): added flag to control use of multiplexed session for blind write. This flag will be used by systest.

* lint(spanner): javadoc fixes.

---------

Co-authored-by: Knut Olav Løite <[email protected]>
lqiu96 pushed a commit that referenced this pull request Sep 19, 2024
@release-please @lqiu96
chore(main): release 6.75.0 (#3336)
7bcb0b6
🤖 I have created a release *beep* *boop*
---


## [6.75.0](https://togithub.com/googleapis/java-spanner/compare/v6.74.1...v6.75.0) (2024-09-19)


### Features

* Support multiplexed session for blind write with single use transaction ([#3229](https://togithub.com/googleapis/java-spanner/issues/3229)) ([b3e2b0f](https://togithub.com/googleapis/java-spanner/commit/b3e2b0f4892951867715cb7f354c089fca4f050f))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@olavloite olavloite olavloite approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@olavloite olavloite

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: l Pull request size is 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.

2 participants

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