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

Don't close while holding lock #13

Merged
merged 1 commit into from
Mar 19, 2019
Merged

Conversation

zklapow
Copy link
Member

@zklapow zklapow commented Mar 19, 2019

This can cause this lock to be held for a very long time, causing contention and possibly connection acquisition timeouts.

@jschlather

@jschlather
Copy link

LGTM, we only needed the lock for mutating the vtGateConnHashMap and closing should be threadsafe?

@zklapow
Copy link
Member Author

zklapow commented Mar 19, 2019

yup (we do the close from a separate thread in some cases anyhow)

@zklapow zklapow merged commit 53b52cb into hubspot-client-beta Mar 19, 2019
@zklapow zklapow deleted the close-outside-lock branch March 19, 2019 19:24
zklapow added a commit that referenced this pull request Apr 2, 2019
jschlather added a commit that referenced this pull request Apr 9, 2019
* Add .build-jdk8

* don't close while holding lock (#13)

* Add temporary info logging statement for slow queries.
olyazavr pushed a commit that referenced this pull request May 18, 2023
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