-
Notifications
You must be signed in to change notification settings - Fork 59
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
close httpClient when closing simpleIngestManager #931
Conversation
Are we okay doing this way (cloning the PR and opening again), should we need CLA signed from author? @sfc-gh-xhuang |
@sfc-gh-japatel Confluent has a CLA already |
This is Snowpipe, we will need Snowpipe folks to review the change |
@sfc-gh-tzhang I've asked Snowpipe team to take a look for approval but it seems the failing test is a streaming test? |
Yes, the failure can be ignored, I have asked Alec to take a look since his PR has the same failure, does look like a real issue |
Team, any updates on this. Can we have this as part of 2.1.x release as well ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merging pr from @nirutgupta
#930
The CloseableHttpResponse is closed with try catch (ref), but the client itself is not getting closed, in case if exception is thrown here. This is causing connection leaks, timeout errors and decrease in throughput.
Added the fix to close the httpClient in SimpleIngestManager close() method.
Will add ingestManager.close() here post this change.