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

chore(spanner): fix client creation in executor #10511

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harshachinta
Copy link
Contributor

@harshachinta harshachinta commented Jul 5, 2024

In executor the spanner client gets created on every StartTxnAction or StartBatchTxnAction leading to creation of client many times and not closing them leading to stale clients and sessions.
This PR fixes it by creating client only during change in database path and properly closing it.

@harshachinta harshachinta requested review from a team as code owners July 5, 2024 12:43
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Jul 5, 2024
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 Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants