Skip to content

feat: Add support for multiplexed sessions #1332

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 6 commits into
base: main
Choose a base branch
from

Conversation

rahul2393
Copy link
Contributor

@rahul2393 rahul2393 commented Apr 4, 2025

  • Adds SessionOptions and DatabaseSessionManager class support multiplexed session in future work.
  • Update Client, Instance, Database, Session and associated Checkout classes accordingly.
  • Add unit tests for new classes and update those for existing classes.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

…es and refactoring) (#1329)

- Adds SessionOptions and DatabaseSessionManager class support multiplexed session in future work.
- Update Client, Instance, Database, Session and associated Checkout classes accordingly.
- Add unit tests for new classes and update those for existing classes.

Signed-off-by: currantw <[email protected]>
@rahul2393 rahul2393 requested review from a team as code owners April 4, 2025 06:52
@rahul2393 rahul2393 changed the title feat: Add support for multiplexed sessions - part 1 (supporting class… feat: Add support for multiplexed sessions Apr 4, 2025
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: spanner Issues related to the googleapis/python-spanner API. labels Apr 4, 2025
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 4, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 4, 2025
currantw and others added 2 commits April 14, 2025 09:55
…ctions) (#1334)

- Enabled use of multiplexed sessions for read-only transactions
- Add maintenance threads for refreshing multiplexed sessions

Signed-off-by: currantw <[email protected]>
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 14, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 14, 2025
@rahul2393 rahul2393 assigned rahul2393 and unassigned surbhigarg92 Apr 14, 2025
currantw and others added 3 commits April 29, 2025 00:16
…sactions) (#1342)

- Enable use of multiplexed sessions for partitioned transactions.
- Add handling for partitioned transaction exceptions.
- Add transaction type enumeration.

Signed-off-by: currantw <[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.

4 participants