[ZODB-Dev] Debugging ReadConflictErrors on ZODB 3.4 (Zope 2.8)
Florent Guillaume
fg at nuxeo.com
Tue Jan 31 09:03:12 EST 2006
This is a ZODB 3.4 version of the patch I previously posted last June:
http://mail.zope.org/pipermail/zodb-dev/2005-June/008907.html
The following patch may be helpful to some of you for debugging. It
collects in memory information about objects when they are loaded
from the ZODB, so that when a ReadConflictError is raised, you can
not only display the oid but also the chain of objects (and their id)
that lead to it, in effect giving you its path.
There's a "log" that you can uncomment to see all objects loaded.
Works on ZODB 2.6 too IIRC. Or the changes are trivial.
Feedback welcome.
Some people have reported infinite loops starting zopectl debug, but
I haven't had time to dig.
Florent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zodb-oid-debug.z28.patch
Type: application/octet-stream
Size: 3908 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20060131/857a74b6/zodb-oid-debug.z28.obj
-------------- next part --------------
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the ZODB-Dev
mailing list