Skip to content
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

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

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

olavloite
Copy link
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 as a code owner 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
33 checks passed
@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 join this conversation on GitHub. Already have an account? Sign in to comment
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