ashb opened a new pull request, #65162:
URL: https://github.com/apache/airflow/pull/65162

   The comment in the test sums up what was going on, but essentially this 
result
   in `session.close` being called when the endpoint returned, but before the
   response was generated.
   
   Then SQLA was 'helpful' and re-opened it. However since the
   teardown/post-yield code has already run, this new session is never closed.
   
   This results in a connection open that leaks untli Python's full GC runs 
(i.e.
   `gc.collect()`) -- it going out of scope doesn't delete things as the
   Session and the RootTransaction form a cycle.
   
   Fixes #65010
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to