[ZODB-Dev] Debugging ReadConflictErrors on ZODB 3.2 (Zope 2.7)

Florent Guillaume fg at nuxeo.com
Fri Jun 3 06:36:04 EDT 2005

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 "print" that you can uncomment to see all objects loaded,  
for fun and maybe profit ;)

Feedback welcome.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: zodb-oid-debug.v2.patch
Type: application/octet-stream
Size: 4031 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20050603/53912b53/zodb-oid-debug.v2-0001.obj
-------------- next part --------------

Florent Guillaume, Nuxeo (Paris, France)   CTO, 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