[Zope-Checkins] CVS: ZODB3/ZEO/tests - InvalidationTests.py:1.10

Tim Peters tim.one at comcast.net
Tue Jan 6 20:46:15 EST 2004


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv8025/ZEO/tests

Modified Files:
	InvalidationTests.py 
Log Message:
Various:  When we opened a new connection before checking BTrees, we also
created the possibility that the checking code would need to try to read
up data from a closed connection.  This turned out to be a frequent source
of new failures in checkConcurrentUpdates1Storage (both FileStorage and BDB
flavors).  Changed all of the relevant tests to grab the BTree anew from
the newly-opened connection.


=== ZODB3/ZEO/tests/InvalidationTests.py 1.9 => 1.10 ===
--- ZODB3/ZEO/tests/InvalidationTests.py:1.9	Tue Jan  6 16:45:11 2004
+++ ZODB3/ZEO/tests/InvalidationTests.py	Tue Jan  6 20:46:14 2004
@@ -465,6 +465,7 @@
             db2._storage.sync()
 
         cn = db1.open()
+        tree = cn.root()["tree"]
         self._check_tree(cn, tree)
         self._check_threads(tree, t1, t2)
 
@@ -489,6 +490,7 @@
         self.go(stop, cd, t1, t2)
 
         cn = db1.open()
+        tree = cn.root()["tree"]
         self._check_tree(cn, tree)
         self._check_threads(tree, t1, t2)
 
@@ -521,7 +523,9 @@
             db1._storage.sync()
             db2._storage.sync()
 
+
         cn = db1.open()
+        tree = cn.root()["tree"]
         self._check_tree(cn, tree)
         self._check_threads(tree, t1, t2, t3)
 
@@ -555,7 +559,9 @@
             db1._storage.sync()
             db2._storage.sync()
 
+
         cn = db1.open()
+        tree = cn.root()["tree"]
         self._check_tree(cn, tree)
         self._check_threads(tree, t1, t2, t3)
 
@@ -591,7 +597,9 @@
         while db1.lastTransaction() != db2.lastTransaction():
             db1._storage.sync()
             db2._storage.sync()
+
         cn = db1.open()
+        tree = cn.root()["tree"]
         self._check_tree(cn, tree)
 
         # Purge the tree of the dummy entries mapping to 0.




More information about the Zope-Checkins mailing list