Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
3b618f31 by Nicolas Évrard at 2023-08-08T15:33:33+02:00
Move sleep loop introduced in a32b84d96649 to prevent deadlock to tests

In this changeset we fix an issue with testing.

When using the listener for cache invalidation it results into the database
lock used by the pool that is acquired twice. Once when calling Pool.init ;
once when the transaction is started which calls Cache.sync which in turn calls
Pool.refresh and finaly Pool.stop. It tries to acquire again the re-entrant
lock (but it cannot because it's another thread).

Closes #12457
- - - - -


2 changed files:

- trytond/trytond/cache.py
- trytond/trytond/tests/test_cache.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/3b618f310b354126e4dbb0f19ad139c5bf879b9e

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/3b618f310b354126e4dbb0f19ad139c5bf879b9e
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to