[ZODB-Dev] database conflict fail
Marius Gedminas
marius at gedmin.as
Thu Mar 22 22:04:59 UTC 2012
On Thu, Mar 22, 2012 at 11:07:09PM +0200, Marius Gedminas wrote:
> On Thu, Mar 22, 2012 at 04:13:34PM -0400, Claudiu Saftoiu wrote:
> > Ok, I just got a ConflictError:
> >
> > ConflictError: database conflict error (oid 0x139c35, class
> > BTrees.OOBTree.OOBucket, serial this txn started with 0x03954ed053c0ff88
> > 2012-03-22 16:48:19.629820, serial currently committed 0x03954f996d61c944
> > 2012-03-22 20:09:25.636401)
> >
> > in my paster shell I do:
> >
> > In [14]: root._p_jar[0x139c35]
>
> OIDs are 64-bit numbers internally encoded as 8-byte-long binary strings.
> Use
>
> >>> !from ZODB.utils import p64
> >>> p root._p_jar.get(p64(0x139c35))
Sorry, I shouldn't use pdb notation on the interactive Python prompt.
>>> from ZODB.utils import p64
>>> root._p_jar.get(p64(0x139c35))
> or http://pypi.python.org/pypi/zodbbrowser
Marius Gedminas
--
IBM motto: "TEN vowels? Don't you know vowels are scrd?"
-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.zope.org/pipermail/zodb-dev/attachments/20120323/4aca296b/attachment.sig>
More information about the ZODB-Dev
mailing list