Skip to content

Conversation

alkatrivedi
Copy link
Contributor

@alkatrivedi alkatrivedi commented Jan 9, 2025

This PR contains support for Multiplexed Session in all the RO methods, along with their tests.

The methods includes are:

  • getSnapshot
  • runStream
  • writeAtLeastOnce

To enable multiplexed session set the environment variable GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS to true

Note: if multiplexed session is enabled, database should exists before getting a reference to cloud spanner database
const database = instance.database(databaseId);

@alkatrivedi alkatrivedi requested review from a team as code owners January 9, 2025 05:10
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: spanner Issues related to the googleapis/nodejs-spanner API. labels Jan 9, 2025
gcf-owl-bot bot and others added 4 commits January 9, 2025 05:15
* chore(main): release 7.17.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: surbhigarg92 <surbhigarg.92@gmail.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch 2 times, most recently from 8a256e0 to 7cf1d60 Compare January 9, 2025 05:26
@alkatrivedi alkatrivedi added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 9, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 9, 2025
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from 7cf1d60 to 9a85b93 Compare January 9, 2025 05:29
@alkatrivedi alkatrivedi added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from 860bf28 to 47a9219 Compare January 9, 2025 06:14
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2025
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from 47a9219 to 3a3d8c7 Compare January 9, 2025 06:41
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from 3a3d8c7 to bc56399 Compare January 9, 2025 06:42
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from bc56399 to f477940 Compare January 9, 2025 06:43
@alkatrivedi alkatrivedi added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 9, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 9, 2025
@alkatrivedi alkatrivedi added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 21, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 21, 2025
@alkatrivedi alkatrivedi added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 21, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 21, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 21, 2025
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from 70f65cd to 43d48df Compare February 21, 2025 07:07
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch 2 times, most recently from f920b4d to 8b69530 Compare February 23, 2025 15:13
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch 2 times, most recently from 61e4c1c to f79ec42 Compare February 24, 2025 05:21
@alkatrivedi alkatrivedi added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 24, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 24, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 24, 2025
@alkatrivedi alkatrivedi force-pushed the multiplexed-session-support-read-only branch from d317ddc to 4b0e39b Compare February 26, 2025 08:10
@alkatrivedi alkatrivedi added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 26, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 26, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 26, 2025
@alkatrivedi alkatrivedi merged commit 3a7a51b into main Feb 26, 2025
20 of 21 checks passed
@alkatrivedi alkatrivedi deleted the multiplexed-session-support-read-only branch February 26, 2025 10:07
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/nodejs-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