Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
afaf0eb9
Commit
afaf0eb9
authored
Mar 16, 2022
by
Dieter Maurer
Committed by
GitHub
Mar 16, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #187 from zopefoundation/hunt_drop_cache_race
hunt for the drop cache race condition
parents
149af836
dedcca5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
src/ZEO/tests/drop_cache_rather_than_verify.txt
src/ZEO/tests/drop_cache_rather_than_verify.txt
+1
-9
No files found.
src/ZEO/tests/drop_cache_rather_than_verify.txt
View file @
afaf0eb9
...
...
@@ -59,7 +59,7 @@ logging and event data:
>>> def event_handler(e):
... if hasattr(e, 'storage'):
... events.append((
... len(e.storage._
server.client.
cache), str(handler), e.__class__.__name__))
... len(e.storage._cache), str(handler), e.__class__.__name__))
>>> old_notify = ZODB.event.notify
>>> ZODB.event.notify = event_handler
...
...
@@ -75,10 +75,6 @@ Now, we'll restart the server on the original address:
>>> wait_connected(db.storage)
##### debugging only ########
>>> print(db.storage._server.client.verify_result)
cache too old, clearing
Now, let's verify our assertions above:
- Publishes a stale-cache event.
...
...
@@ -145,10 +141,6 @@ another client:
(When a database is created, it checks to make sure the root object is
in the database, which is why we get 1, rather than 0 objects in the cache.)
##### debugging only ########
>>> print(db.storage._server.client.verify_result)
cache too old, clearing
- Publishes a stale-cache event.
>>> for e in events:
...
...
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