-
Notifications
You must be signed in to change notification settings - Fork 176
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
Set enable_cleanup_closed=True to drop TLS connections without a shutdown #468
Conversation
…down AsyncOpenSearch seems to leak TLS connections due to a missing parameter in `aiohttp.TCPConnector`. This causes opensearch-project#172 and was also fixed "upstream" in this issue elastic/elasticsearch-py#1910. Signed-off-by: Sandor Nemes <snemes@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #468 +/- ##
==========================================
- Coverage 71.69% 71.62% -0.07%
==========================================
Files 87 87
Lines 7875 7881 +6
==========================================
- Hits 5646 5645 -1
- Misses 2229 2236 +7
|
Thanks! Could you please add a line to CHANGELOG and write a unit test (ideally showing that the leak is fixed, but at least that the parameter is passed through). |
Sure, I can add a line to the changelog, but I won't have time to write a
unit test for this, sorry about that.
…On Thu, Aug 3, 2023, 17:24 Daniel (dB.) Doubrovkine < ***@***.***> wrote:
Thanks! Could you please add a line to CHANGELOG and write a unit test
(ideally showing that the leak is fixed, but at least that the parameter is
passed through).
—
Reply to this email directly, view it on GitHub
<#468 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABP4VHX5QX7ETYREDSWGW7LXTO7DLANCNFSM6AAAAAA3C4WYHU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Signed-off-by: Sandor Nemes <snemes@users.noreply.github.com>
We'll have to wait for one to merge this. Thanks for your help, hopefully someone can finish the PR. |
@snemes, Could you please try to write a test when you have a moment? Thank you! |
Signed-off-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
I tried to concoct a test for this but it became rather convoluted, so I gave up. Merging this as is. The documentation in https://docs.aiohttp.org/en/stable/client_reference.html is convincing enough that this is a harmless improvement that times out unclosed SSL connections and ES client already merged the same including in elastic/elastic-transport-python@57a2c18. |
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.
Thanks @snemes for contributing!
…down (opensearch-project#468) * Set enable_cleanup_closed=True to drop TLS connections without a shutdown AsyncOpenSearch seems to leak TLS connections due to a missing parameter in `aiohttp.TCPConnector`. This causes opensearch-project#172 and was also fixed "upstream" in this issue elastic/elasticsearch-py#1910. Signed-off-by: Sandor Nemes <snemes@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Sandor Nemes <snemes@users.noreply.github.com> --------- Signed-off-by: Sandor Nemes <snemes@users.noreply.github.com> Signed-off-by: Daniel (dB.) Doubrovkine <dblock@amazon.com> Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com> Signed-off-by: roma2023 <romasaparhan19@gmail.com>
Description
AsyncOpenSearch
seems to leak TLS connections due to a missing parameter inaiohttp.TCPConnector
.Issues Resolved
This fixes #172 and was also fixed "upstream" in this issue elastic/elasticsearch-py#1910.
Also seems to be related to this aio-libs/aiohttp#6490 (which is probably the root cause of the issue).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.