Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@faviansamatha
Copy link
Contributor

Description

Previously, MySQL would sometimes hang because we use the executor when we call the is_closed method when we call the destructor of AwsConnectionWrapper. However, when we call the destructor, it's not guaranteed.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

return prop_copy

def is_closed(self, conn: Connection) -> bool:
def is_closed(self, conn: Connection, is_releasing_resources: bool = False) -> bool:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was discussed offline, I'm not a big fan of this and changing the driver dialects. Ideally, we should be maintaining the lifecycle of ThreadPoolExecutors. This way, it won't be shut down when a destructor is called on the wrapper while the executor is being garbage-collected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went with the simpler solution, just remove this is_closed check.

@faviansamatha faviansamatha force-pushed the fix/hanging-mysql-tests branch from 795311f to c0eaac1 Compare December 20, 2025 01:13
@faviansamatha faviansamatha merged commit d1c428a into main Dec 22, 2025
8 checks passed
@faviansamatha faviansamatha deleted the fix/hanging-mysql-tests branch December 22, 2025 18:22
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.