Skip to content

feat: Add support for multiplexed sessions - partitioned #1383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

currantw
Copy link

feat: Add support for multiplexed sessions - partitioned:

TODO

@currantw currantw requested review from a team as code owners May 29, 2025 19:42
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label May 29, 2025
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label May 29, 2025
…E_MULTIPLEXED_SESSIONS` and add unit tests.

Signed-off-by: Taylor Curran <[email protected]>
@currantw currantw force-pushed the support-mux-session-2 branch from 57902b4 to c8e7a1c Compare May 29, 2025 19:45
@lszinv lszinv added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 29, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 29, 2025
…` exception from `DatabaseSessionManager` and add unit tests.

Signed-off-by: Taylor Curran <[email protected]>
environ[SessionOptions.ENV_VAR_ENABLE_MULTIPLEXED] = "true"
environ[SessionOptions.ENV_VAR_ENABLE_MULTIPLEXED_FOR_PARTITIONED] = "true"
environ[SessionOptions.ENV_VAR_ENABLE_MULTIPLEXED_FOR_READ_WRITE] = "true"
environ[SessionOptions.ENV_VAR_FORCE_DISABLE_MULTIPLEXED] = "false"
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to force disable multiplexed

Copy link
Author

@currantw currantw May 30, 2025

Choose a reason for hiding this comment

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

We don't need it at all? Is this environment variable is being completely removed from the scope of the project?

@currantw currantw force-pushed the support-mux-session-2 branch from 0bd4e7b to 98e6b13 Compare May 30, 2025 19:00
…shotBase` and update attributes and tests.

Signed-off-by: Taylor Curran <[email protected]>
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels May 30, 2025
currantw added 5 commits May 30, 2025 15:58
…edundant as transaction ID is set via `_restart_on_unavailable`)

Signed-off-by: Taylor Curran <[email protected]>
…to `Client` so that multiplexed are disabled for _all_ databases.

Signed-off-by: Taylor Curran <[email protected]>
…Database.run_in_transaction` to not use it.

Signed-off-by: Taylor Curran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants