Fix connection leakage in CustomRestClient#1472
Conversation
26c9ce7 to
c814d3a
Compare
helix-rest/src/main/java/org/apache/helix/rest/client/CustomRestClientImpl.java
Show resolved
Hide resolved
helix-rest/src/main/java/org/apache/helix/rest/client/CustomRestClientImpl.java
Show resolved
Hide resolved
|
@pkuwm, yes, this should fix the issue I found which can be urgent. So without a unit test, it is fine for now. Can you also add an issue to add a unit test? |
I actually thought about unit testing the connection leak and did an investigation on it. It is not easy. As long as we use it correctly, it is fine. |
|
This PR is ready to be merged, approved by @kaisun2000 There is connection leakage in CustomRestClientImpl and causes timeout waiting for connection. |
There is connection leakage in CustomRestClientImpl and causes timeout waiting for connection. Fix this issue by consuming entity and releasing the content stream and connection.
Issues
Fixes #1471
Description
There is connection leakage in
CustomRestClientImpland causes timeout waiting for connection.Fix this issue by consuming entity and releasing stream and connection.
Tests
Manually reproduce the issue locally. After the fix, the issue is gone.
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)