[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: - Fixed bug where in the case that a pool checkout
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2015-05-14 17:59:33
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/4a0e51e7d2f3/ Changeset: 4a0e51e7d2f3 Branch: None User: zzzeek Date: 2015-05-14 17:59:04+00:00 Summary: - Fixed bug where in the case that a pool checkout event handler is used and the database can no longer be connected towards, that the checkout handler failure is caught, the attempt to re-acquire the connection also raises an exception, but the underlying connection record is not immediately re-checked in before the exception is propagated outwards, having the effect that the checked-out record does not close itself until the stack trace it's associated with is garbage collected, preventing that record from being used for a new checkout until we leave the scope of the stack trace. This can lead to confusion in the specific case of when the number of current stack traces in memory exceeds the number of connections the pool can return, as the pool will instead begin to raise errors about no more checkouts available, rather than attempting a connection again. The fix applies a checkin of the record before re-raising. fixes #3419 Affected #: 3 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |