Okay, so here's the test harness:
svn co https://secure.simplistix.co.uk/svn/relstorage_pack -r 4594
It uses the normal RelStorage test users and databases.
After running the buildout, I do each of the following in their own
On 28/01/2011 10:26, Shane Hathaway wrote:
>> I'm going to have a go at knocking up a small batch script that you can
>> run to reproduce the issue, but there's definitely an issue here when
>> packing while changing lots of data in a ZODB.
> I look forward to your results!
I initially had the file size set to 200Kb and everything seemed to be
behaving as it should.
I dropped the file size to 1kb and tried again, getting the following
after a short time:
Traceback (most recent call last):
File "bin/generate", line 100, in <module>
File "/home/zope/relstorage_pack/generate.py", line 62, in generate
line 536, in manage_delObjects
847, in setstate
897, in _setstate
p, serial = self._storage.load(obj._p_oid, '')
line 448, in load
state, tid_int = cache.load(cursor, oid_int)
line 234, in load
self._check_tid_after_load(oid_int, actual_tid_int, tid_int)
line 187, in _check_tid_after_load
AssertionError: Detected an inconsistency between the RelStorage cache
and the database while loading an object using the delta_after0 dict.
Please verify the database is configured for ACID compliance and that
all clients are using the same commit lock. (oid_int=2509,
cp1=255550891176006912L, len(delta_after0)=2376, len(delta_after1)=0,
Not the POSKeyError I'm having trouble with, but looks like you might
want to know ;-)
Could this have anything to do with the POSKeyErrors?
Simplistix - Content Management, Batch Processing & Python Consulting
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org