]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test(pool): add test to show deadlock on logging
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 19 Feb 2022 14:39:37 +0000 (15:39 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 19 Feb 2022 15:54:02 +0000 (16:54 +0100)
commit3131f714bd202d163b0efd77b3a708aa08c274c6
treefee9552ab7db1122c8ba72c759e3ef7c8f365147
parent41725fb4e08bd27a2161781a085a250dd6a7a030
test(pool): add test to show deadlock on logging

This deadlock seems reproducible at least on Python 3.8 and 3.10 on
Linux. It is caused by the logging statement in
``MaintenanceTask.__init__``: even just a ``print()`` there causes the lock.

See https://github.com/psycopg/psycopg/issues/230 for more details.
tests/pool/test_pool.py
tests/pool/test_pool_async.py