Skip to content

Fix max_pending_connection_acquisitions to respect connection pool size #485

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

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented Sep 5, 2024

Description of changes:
The previous implementation was too aggressive regarding max_pending_connection_acquisitions. If the max_connections were 50 and max_pending_connection_acquisitions was 10, the 11th acquire request failed even though it was within the max connection limit. This PR changes the implementation to prioritize max_connections first and only fail the 61st request. This change is similar to Netty Behavior
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@waahm7 waahm7 marked this pull request as draft September 5, 2024 17:57
@waahm7 waahm7 changed the title Fix max_pending_connection_acquisitions to respect connection pool size WIP | Fix max_pending_connection_acquisitions to respect connection pool size Sep 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.62%. Comparing base (4e74ab1) to head (b7c62ca).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #485      +/-   ##
==========================================
+ Coverage   79.59%   79.62%   +0.02%     
==========================================
  Files          27       27              
  Lines       11684    11684              
==========================================
+ Hits         9300     9303       +3     
+ Misses       2384     2381       -3     

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

@waahm7 waahm7 marked this pull request as ready for review September 5, 2024 20:20
@waahm7 waahm7 changed the title WIP | Fix max_pending_connection_acquisitions to respect connection pool size Fix max_pending_connection_acquisitions to respect connection pool size Sep 5, 2024
@waahm7 waahm7 merged commit 4b1634b into main Sep 10, 2024
36 checks passed
@waahm7 waahm7 deleted the fix-pending-acquisition-timeout branch September 10, 2024 19:58
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.

3 participants