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

feat(AsyncOpenSearch): consistent pool_maxsize setting #845

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

samypr100
Copy link
Contributor

Description

Allows using pool_maxsize in AsyncOpenSearch client to align with OpenSearch client.

Issues Resolved

Closes #844

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.

Signed-off-by: samypr100 <3933065+samypr100@users.noreply.github.com>
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.92%. Comparing base (ba715b9) to head (37e360d).
Report is 68 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #845      +/-   ##
==========================================
- Coverage   71.95%   70.92%   -1.04%     
==========================================
  Files          91      113      +22     
  Lines        8001     8900     +899     
==========================================
+ Hits         5757     6312     +555     
- Misses       2244     2588     +344     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses the same testing structure as test_urllib3.py and test_requests.py for consistency. Happy to make changes / move it.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@dblock
Copy link
Member

dblock commented Nov 12, 2024

Thanks for fixing this. In general I think we need a way to make these options and tests share a lot more code. There's a constant stream of bugs where something works/exists in sync and doesn't in async. Maybe someone (wink wink) has good ideas and wants to try and refactor things :)

@dblock dblock merged commit 1269cdc into opensearch-project:main Nov 12, 2024
39 of 41 checks passed
@samypr100 samypr100 deleted the async-pool-maxsize branch November 12, 2024 17:30
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.

[FEATURE] Consistent connection pooling setting
2 participants