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

Close Spanner health check ResultSet to prevent session leak #902

Merged
merged 3 commits into from
Jan 25, 2022

Conversation

elefeint
Copy link
Contributor

Verified that the session pool stays stable after the fix using one of the Spanner samples, plus actuator dependency.

Fixes #891.

@sonarcloud
Copy link

sonarcloud bot commented Jan 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@elefeint elefeint merged commit c2a7160 into main Jan 25, 2022
@elefeint elefeint deleted the fix-spanner-session-leak branch January 25, 2022 20:25
elefeint added a commit that referenced this pull request Jan 28, 2022
* close result set to prevent session leak

* restrict visibility of test methods

* use try-with-resources to close the resultset
elefeint added a commit that referenced this pull request Jan 28, 2022
…918)

* close result set to prevent session leak

* restrict visibility of test methods

* use try-with-resources to close the resultset
kateryna216 added a commit to kateryna216/spring-cloud-gcp that referenced this pull request Oct 20, 2022
…loudPlatform#902)

* close result set to prevent session leak

* restrict visibility of test methods

* use try-with-resources to close the resultset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connectivity issues with Spanner on 2.0.6 and above
3 participants