Commit b6acf30f authored by Jim Fulton's avatar Jim Fulton

More debug info to debug weird buildbot failure

parent d0105255
...@@ -1352,8 +1352,9 @@ class ClientStorage(object): ...@@ -1352,8 +1352,9 @@ class ClientStorage(object):
if last_inval_tid is not None: if last_inval_tid is not None:
if ltid == last_inval_tid: if ltid == last_inval_tid:
logger.info( logger.info(
"%s No verification necessary (last_inval_tid up-to-date)", "%s No verification necessary"
self.__name__) " (last_inval_tid up-to-date %r)",
self.__name__, ltid)
self.finish_verification() self.finish_verification()
return "no verification" return "no verification"
elif ltid < last_inval_tid: elif ltid < last_inval_tid:
......
...@@ -169,6 +169,10 @@ This tests tries to provoke this bug by: ...@@ -169,6 +169,10 @@ This tests tries to provoke this bug by:
- starting a second client that writes objects more or less - starting a second client that writes objects more or less
constantly, constantly,
>>> import zope.testing.loggingsupport, logging
>>> debughandler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG)
>>> import random, threading, time >>> import random, threading, time
>>> stop = False >>> stop = False
>>> db2 = ZEO.DB(addr) >>> db2 = ZEO.DB(addr)
...@@ -184,6 +188,9 @@ This tests tries to provoke this bug by: ...@@ -184,6 +188,9 @@ This tests tries to provoke this bug by:
... with lock: ... with lock:
... conn2.root()[i].value += 1 ... conn2.root()[i].value += 1
... tm.commit() ... tm.commit()
... logging.getLogger('ZEO').debug(
... 'COMMIT %s %s %r' % (
... i, conn2.root()[i].value, conn2.root()[i]._p_serial))
... time.sleep(0) ... time.sleep(0)
>>> thread = threading.Thread(target=run) >>> thread = threading.Thread(target=run)
>>> thread.setDaemon(True) >>> thread.setDaemon(True)
...@@ -192,11 +199,8 @@ This tests tries to provoke this bug by: ...@@ -192,11 +199,8 @@ This tests tries to provoke this bug by:
- restarting the first client, and - restarting the first client, and
- testing for cache validity. - testing for cache validity.
>>> import zope.testing.loggingsupport, logging
>>> handler = zope.testing.loggingsupport.InstalledHandler( >>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.ERROR) ... 'ZEO', level=logging.ERROR)
>>> debughandler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG)
>>> bad = False >>> bad = False
>>> try: >>> try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment