-
Notifications
You must be signed in to change notification settings - Fork 72
Connections are left in CLOSE_WAIT after DatabaseClient.release is called #467
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
Comments
…nection pool) to avoid any lingering connections in CLOSE_WAIT
Here's a description of TIME_WAIT connections with respect to Apache httpclient. The description of TIME_WAIT vs CLOSE_WAIT comes across strange to me, but for what it's worth: |
Updating this Git Issue, with comments taken from MarkLogic Bug Track system ( https://bugtrack.marklogic.com/41543) QA Test Results / Oberservations on Windows Cluster running MarkLogic Server build - 8.0-5.8. Commands run are:
Changed one of the test to have Sam's code to reproduce the issue
On admin GUI verified that there are fragments after the delete of graph (doc) from the sample test code. Was able to see connection in CLOSE_WAIT. Did a checkout of latest 3.0-develop into another folder. Tested on Linux cluster with same procedures. |
The issue is fixed. Ran the tests on release-3.0.5.1 branch of Java Client API on MarkLogic Server build 8.0-5.8 version. |
Issue won't sync if its closed. |
This has not been a major issue because the recommendation is that applications share one DatabaseClient instance throughout the life of the application and and call release when the application is ready to terminate. However, we want to be a good citizen and close all the resources we open. This bug demonstrates we are not doing this in this case.
Then on linux, while the Thread.sleep is still going, run the following to see the connections still in close wait:
The text was updated successfully, but these errors were encountered: