[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/ More debug info to debug weird buildbot failure
Jim Fulton
jim at zope.com
Thu Sep 16 16:00:46 EDT 2010
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:
More information about the Zodb-checkins
mailing list