[Zodb-checkins] CVS: ZODB3 - NEWS.txt:

Tim Peters tim.one at comcast.net
Thu Feb 24 14:59:34 EST 2005

Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv25842

Modified Files:
      Tag: Zope-2_7-branch
Log Message:
Change the exception raised when an attempt is made to add two objects to
the cache with the same oid.  The former messsage didn't make sense.

Add a test to verify that this exception does get raised, and that the
message given is the intended one.

This is the first of a series of checkins, to fix critical bugs where
ZODB can in fact raise this exception in rare, but normal, use cases.

=== ZODB3/NEWS.txt => ===
--- ZODB3/NEWS.txt:	Fri Feb  4 14:50:13 2005
+++ ZODB3/NEWS.txt	Thu Feb 24 14:59:03 2005
@@ -28,6 +28,21 @@
 depending on platform, and should suffer far fewer (if any) intermittent
 "timed out waiting for storage to connect" failures.
+Pickle (in-memory Connection) Cache
+You probably never saw this exception:
+    ``ValueError: Can not re-register object under a different oid``
+It's been changed to say what it meant:
+    ``ValueError: A different object already has the same oid``
+This happens if an attempt is made to add distinct objects to the cache
+that have the same oid (object identifier).  ZODB should never do this,
+but it's possible for application code to force such an attempt.

More information about the Zodb-checkins mailing list