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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Show 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):
...
@@ -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
:
...
...
src/ZEO/tests/testConnection.py
View file @
b6acf30f
...
@@ -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:
...
...
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