Couldn't load state for 0x013872b7 / AssertionError

Bug #143590 reported by ChrisW
2
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/ZODB/Connection.py", line
704, in setstate
    self._setstate(obj)
  File "lib/python/ZODB/Connection.py", line
757, in _setstate
    self._load_before_or_conflict(obj)
  File "lib/python/ZODB/Connection.py", line
765, in _load_before_or_conflict
    if not (self._mvcc and self._setstate_noncurrent(obj)):
  File "lib/python/ZODB/Connection.py", line
788, in _setstate_noncurrent
    assert end is not None
AssertionError

Tags: bug database
Revision history for this message
Tim Peters (tim-one) wrote :

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,
such that we would not call "_setstate_current".

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.transaction_manager = transaction_manager or transaction.manager
        # DM 2005-08-22: always call '_flush_invalidations' as it does
        # more than cache handling only
        self._flush_invalidations()
        if self._reset_counter != global_reset_counter:
            # New code is in place. Start a new cache.
            self._resetCache()
        # DM 2005-08-22: always call '_flush_invalidations'
## else:
## self._flush_invalidations()

"""

Revision history for this message
Florent Guillaume (efge) wrote :

FYI we appear to have the same problem in production at a customer site.
I don't know enough of MVCC to dig into this myself.
We'll try Dieter's patch, and report on the effects, and I'll include the patch in ZODB if it proves harmless.

Revision history for this message
Florent Guillaume (efge) wrote :

Didn't seem to fix it...

affects: zope2 → zodb
Revision history for this message
Jim Fulton (jim-zope) wrote :

Is this still a problem?

Changed in zodb:
status: New → Incomplete
Revision history for this message
ChrisW (chris-simplistix) wrote :

The guys still working on this project have said they don't see these anymore.

Revision history for this message
Jim Fulton (jim-zope) wrote : Re: [Bug 143590] Re: Couldn't load state for 0x013872b7 / AssertionError

On Wed, Sep 15, 2010 at 2:39 AM, ChrisW <email address hidden> wrote:
> The guys still working on this project have said they don't see these
> anymore.

Great! Much thanks for checking.

JIm

--
Jim Fulton

Revision history for this message
Jim Fulton (jim-zope) wrote :

This seems to not be a problem any more.

Changed in zodb:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.