Commit a10a6023 authored by Jim Fulton's avatar Jim Fulton

Commented out some debugging logging calls to increase the likelyhood

of provoking the buildbot test failure that I hope I just fixed. :)
parent 6ab1c03e
...@@ -164,10 +164,10 @@ This tests tries to provoke this bug by: ...@@ -164,10 +164,10 @@ This tests tries to provoke this bug by:
>>> import zope.testing.loggingsupport, logging >>> import zope.testing.loggingsupport, logging
>>> handler = zope.testing.loggingsupport.InstalledHandler( >>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG) ... 'ZEO', level=logging.INFO)
>>> logging.getLogger('ZEO').debug( # >>> logging.getLogger('ZEO').debug(
... 'Initial tid %r' % conn.root()._p_serial) # ... 'Initial tid %r' % conn.root()._p_serial)
- disconnecting the first client (closing it with a persistent cache), - disconnecting the first client (closing it with a persistent cache),
...@@ -191,9 +191,9 @@ This tests tries to provoke this bug by: ...@@ -191,9 +191,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( ... #logging.getLogger('ZEO').debug(
... 'COMMIT %s %s %r' % ( ... # 'COMMIT %s %s %r' % (
... i, conn2.root()[i].value, conn2.root()[i]._p_serial)) ... # 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)
...@@ -208,15 +208,15 @@ This tests tries to provoke this bug by: ...@@ -208,15 +208,15 @@ This tests tries to provoke this bug by:
... time.sleep(.1) ... time.sleep(.1)
... db = ZODB.DB(ZEO.ClientStorage.ClientStorage(addr, client='x')) ... db = ZODB.DB(ZEO.ClientStorage.ClientStorage(addr, client='x'))
... with lock: ... with lock:
... logging.getLogger('ZEO').debug('Locked %s' % c) ... #logging.getLogger('ZEO').debug('Locked %s' % c)
... @wait_until("connected and we have caught up", timeout=199) ... @wait_until("connected and we have caught up", timeout=199)
... def _(): ... def _():
... if (db.storage.is_connected() ... if (db.storage.is_connected()
... and db.storage.lastTransaction() ... and db.storage.lastTransaction()
... == db.storage._server.lastTransaction() ... == db.storage._server.lastTransaction()
... ): ... ):
... logging.getLogger('ZEO').debug( ... #logging.getLogger('ZEO').debug(
... 'Connected %r' % db.storage.lastTransaction()) ... # 'Connected %r' % db.storage.lastTransaction())
... return True ... return True
... ...
... conn = db.open() ... conn = db.open()
...@@ -232,8 +232,8 @@ This tests tries to provoke this bug by: ...@@ -232,8 +232,8 @@ This tests tries to provoke this bug by:
... print handler.format(record) ... print handler.format(record)
... if bad: ... if bad:
... print open('server-%s.log' % addr[1]).read() ... print open('server-%s.log' % addr[1]).read()
... else: ... #else:
... logging.getLogger('ZEO').debug('GOOD %s' % c) ... # logging.getLogger('ZEO').debug('GOOD %s' % c)
... db.close() ... db.close()
... finally: ... finally:
... stop = True ... stop = True
......
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