Skip to content

Conversation

iksteen
Copy link

@iksteen iksteen commented Sep 30, 2022

Cancelling _fill_free_pool before a new connection is added to self._free prevents it from being cleaned up which causes a lingering connection and eventually the postgresql server running out of sockets.

What do these changes do?

Are there changes in behavior for the user?

Related issue number

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

Cancelling _fill_free_pool before a new connection is added to
self._free prevents it from being cleaned up which causes a
lingering connection and eventually the postgresql server running
out of sockets.
@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

❌ Patch coverage is 20.00000% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.83%. Comparing base (1ba66ca) to head (1f39c7c).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
aiopg/pool.py 20.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #893      +/-   ##
==========================================
- Coverage   91.77%   90.83%   -0.94%     
==========================================
  Files           9        9              
  Lines         863      873      +10     
  Branches      118      121       +3     
==========================================
+ Hits          792      793       +1     
- Misses         53       61       +8     
- Partials       18       19       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant