[zope2-tracker] [Bug 142129] Re: THUNKED_TM mismatch with TM.TM

Brad Clements bkc at Murkworks.com
Fri Apr 16 15:07:40 EDT 2010


We are using gvibDA and Firebird.

The patch from 2001 is for Zope 2.5.

I see we're currently running Zope 2.7.2-0 and it does not have the
THUNK.py patch applied.

However we're running all our Zope instances in single-threaded  mode
due to unreliability with the DB adapter.

Interesting, I think when upgrading from 2.5 to 2.7.2 we forgot to re-
apply our suggested patch. Then Zope got  unreliable and instead of
figuring it out again and applying the patch, we just moved to single-
threaded mode behind Pound.

---

The point of the patch is to make sure that changes to self._registered
occur only while the lock is held. Without this change the THUNKED_TM
instance can appear as still being registered even when it is no longer
registered due to the lock being released (thereby allowing another
thread to pick up the THUNKED_TM instance) before self._registered is
set to 0

-- 
THUNKED_TM mismatch with TM.TM
https://bugs.launchpad.net/bugs/142129
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list