Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
b6acf30f
Commit
b6acf30f
authored
Sep 16, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More debug info to debug weird buildbot failure
parent
d0105255
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+3
-2
src/ZEO/tests/testConnection.py
src/ZEO/tests/testConnection.py
+7
-3
No files found.
src/ZEO/ClientStorage.py
View file @
b6acf30f
...
...
@@ -1352,8 +1352,9 @@ class ClientStorage(object):
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
:
...
...
src/ZEO/tests/testConnection.py
View file @
b6acf30f
...
...
@@ -169,6 +169,10 @@ This tests tries to provoke this bug by:
- 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 @@ This tests tries to provoke this bug by:
... 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 @@ This tests tries to provoke this bug by:
- 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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment