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

Fix connection leak in JDBC waitUntilContainerStarted #5281

Merged

Conversation

rpygithub
Copy link
Contributor

@rpygithub rpygithub commented Apr 22, 2022

Only the Statement was auto-closed, but not the Connection against which the Statement was created.

Aside from being a resource leak, this can cause database rename transactions to fail due to the presence of a lingering idle session.

Only the Statement was auto-closed, but not the Connection
from which the Statement was created.

Aside from resources leaking, this can cause problems
when database rename transactions are executed by clients.
@marcphilipp
Copy link
Contributor

For reference, I think the root cause was #3015.

@kiview kiview added this to the next milestone Apr 25, 2022
@kiview
Copy link
Member

kiview commented Apr 25, 2022

Thanks a lot! 👍

@kiview kiview merged commit 9660137 into testcontainers:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants