SVN: ZODB/trunk/src/ZEO/ More debug info to debug weird buildbot failure

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100916200046.6347F941E4__1597.03680915317$1284667253$gmane$org@cvs.zope.org>
Log message for revision 116467:
  More debug info to debug weird buildbot failure

Changed:
  U   ZODB/trunk/src/ZEO/ClientStorage.py
  U   ZODB/trunk/src/ZEO/tests/testConnection.py

-=-
Modified: ZODB/trunk/src/ZEO/ClientStorage.py
===================================================================
--- ZODB/trunk/src/ZEO/ClientStorage.py	2010-09-16 16:03:30 UTC (rev 116466)
+++ ZODB/trunk/src/ZEO/ClientStorage.py	2010-09-16 20:00:45 UTC (rev 116467)
@@ -1352,8 +1352,9 @@
         if last_inval_tid is not None:
             if ltid == last_inval_tid:
                 logger.info(
-                    "%s No verification necessary (last_inval_tid up-to-date)",
-                    self.__name__)
+                    "%s No verification necessary"
+                    " (last_inval_tid up-to-date %r)",
+                    self.__name__, ltid)
                 self.finish_verification()
                 return "no verification"
             elif ltid < last_inval_tid:

Modified: ZODB/trunk/src/ZEO/tests/testConnection.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testConnection.py	2010-09-16 16:03:30 UTC (rev 116466)
+++ ZODB/trunk/src/ZEO/tests/testConnection.py	2010-09-16 20:00:45 UTC (rev 116467)
@@ -169,6 +169,10 @@
 - starting a second client that writes objects more or less
   constantly,
 
+    >>> import zope.testing.loggingsupport, logging
+    >>> debughandler = zope.testing.loggingsupport.InstalledHandler(
+    ...    'ZEO', level=logging.DEBUG)
+
     >>> import random, threading, time
     >>> stop = False
     >>> db2 = ZEO.DB(addr)
@@ -184,6 +188,9 @@
     ...         with lock:
     ...             conn2.root()[i].value += 1
     ...             tm.commit()
+    ...             logging.getLogger('ZEO').debug(
+    ...                'COMMIT %s %s %r' % (
+    ...                    i, conn2.root()[i].value, conn2.root()[i]._p_serial))
     ...         time.sleep(0)
     >>> thread = threading.Thread(target=run)
     >>> thread.setDaemon(True)
@@ -192,11 +199,8 @@
 - restarting the first client, and
 - testing for cache validity.
 
-    >>> import zope.testing.loggingsupport, logging
     >>> handler = zope.testing.loggingsupport.InstalledHandler(
     ...    'ZEO', level=logging.ERROR)
-    >>> debughandler = zope.testing.loggingsupport.InstalledHandler(
-    ...    'ZEO', level=logging.DEBUG)
 
     >>> bad = False
     >>> try:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.