Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

feat: add option for cancelling queries when closing client#3276

Merged
rahul2393 merged 4 commits intomainfrom
fail-fast-on-client-close
Aug 21, 2024
Merged

feat: add option for cancelling queries when closing client#3276
rahul2393 merged 4 commits intomainfrom
fail-fast-on-client-close

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

@olavloite olavloite commented Aug 16, 2024

Adds the possibility to keep track of all running queries and cancel these when the client is closed. This option is currently only used for queries that are started by BatchReadOnlyTransactions, as these do not use pooled sessions. Queries that use pooled sessions are automatically cancelled when the client is closed, because the sessions are deleted.

Adds an option to keep track of all running queries and cancel these
when the client is closed.
@olavloite olavloite requested a review from a team August 16, 2024 16:42
@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 Aug 16, 2024
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2024
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2024
@rahul2393 rahul2393 merged commit 95da1ed into main Aug 21, 2024
@rahul2393 rahul2393 deleted the fail-fast-on-client-close branch August 21, 2024 05:01
lqiu96 pushed a commit that referenced this pull request Sep 10, 2024
* feat: add option for cancelling queries when closing client

Adds an option to keep track of all running queries and cancel these
when the client is closed.

* test: unflake test cases

* fix: cancel query by default for batch transactions

* chore: cleanup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants