ZODB cross-database savepoints forget explicit connection adds
Bug #251214 reported by
Fred Drake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
It's possible for an object's association with a connection during the course of a transaction can be forgotten during a savepoint.
Here's one way to trigger this (may be oversimplified):
1. Add an object to a specific connection.
2. Call transaction.
3. Add a reference to the object from an object associated with another connection.
4. Call transaction.
An exception gets generated at this point:
InvalidObjectRe
(Raised by ZODB.serialize.
affects: | zope3 → zodb |
To post a comment you must log in.
On Jul 23, 2008, at 1:16 PM, Fred Drake wrote:
> Public bug reported:
>
> It's possible for an object's association with a connection during the
> course of a transaction can be forgotten during a savepoint.
The problem is that Connection. _implicitlyAddi ng considers something
to be implicitly added if it was added in a savepoint -- even if it
was explicitly added to the savepoint.
Jim
--
Jim Fulton
Zope Corporation