Skip to content

Rename jdbc db methods that require manual closure #11300

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

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

tuliren
Copy link
Contributor

@tuliren tuliren commented Mar 21, 2022

Summary

  • This relates to [EPIC] Fix database connection leak #10386.
  • A few methods in JdbcDatabase is not safe because the returned streams need to be closed manually, otherwise there will be database connection leaks.
  • This PR renames those methods to make this issue more visible.

Review order

  • The only real changes are all in JdbcDatabase.java.

@tuliren tuliren temporarily deployed to more-secrets March 21, 2022 20:44 Inactive
@github-actions github-actions bot added the area/connectors Connector related issues label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants