1.4.51
1.4.51
Released: January 2, 2024
orm
-
[orm] [bug] Improved a fix first implemented for #3208 released in version
0.9.8, where the registry of classes used internally by declarative could
be subject to a race condition in the case where individual mapped classes
are being garbage collected at the same time while new mapped classes are
being constructed, as can happen in some test suite configurations or
dynamic class creation environments. In addition to the weakref check
already added, the list of items being iterated is also copied first to
avoid "list changed while iterating" errors. Pull request courtesy Yilei
Yang.References: #10782
asyncio
-
[asyncio] [bug] Fixed critical issue in asyncio version of the connection pool where
calling_asyncio.AsyncEngine.dispose()
would produce a new connection
pool that did not fully re-establish the use of asyncio-compatible mutexes,
leading to the use of a plainthreading.Lock()
which would then cause
deadlocks in an asyncio context when using concurrency features like
asyncio.gather()
.References: #10813