Couldn't load state for 0x013872b7 / AssertionError
Bug #143590 reported by
ChrisW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
Invalid
|
Medium
|
Unassigned |
Bug Description
Same circumstances as #1970, but different error:
10:05 - Couldn't load state for 0x013872b7:
Traceback (most recent call last):
File "lib/python/
704, in setstate
self.
File "lib/python/
757, in _setstate
self.
File "lib/python/
765, in _load_before_
if not (self._mvcc and self._setstate_
File "lib/python/
788, in _setstate_
assert end is not None
AssertionError
affects: | zope2 → zodb |
To post a comment you must log in.
More info from Dieter Maurer, at
http:// mail.zope. org/pipermail/ zodb-dev/ 2005-December/ 009623. html
"""
This means that the latest modification for this object
lies before the respective transaction.
In this case, we should not have an invalidation for the object, current" .
such that we would not call "_setstate_
I expect a missing "flush_ invalidations" during "Connection. _setDB" .
I had to add such a call in our ZODB version:
def _setDB(self, odb, mvcc=None, txn_mgr= DEPRECATED_ ARGUMENT,
transaction_ manager= None, synch=None):
self.transacti on_manager = transaction_manager or transaction.manager invalidations' as it does
self._ flush_invalidat ions() reset_counter:
self. _resetCache( ) invalidations' invalidations( )
....
# DM 2005-08-22: always call '_flush_
# more than cache handling only
if self._reset_counter != global_
# New code is in place. Start a new cache.
# DM 2005-08-22: always call '_flush_
## else:
## self._flush_
"""