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
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
Kirill Smelkov
ZEO
Commits
e3d21226
Commit
e3d21226
authored
Jun 20, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'asyncio' of github.com:zopefoundation/ZEO into asyncio
parents
f640adb0
52baf1e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/ZEO/ordering.rst
src/ZEO/ordering.rst
+10
-8
No files found.
src/ZEO/ordering.rst
View file @
e3d21226
...
@@ -226,8 +226,11 @@ T2
...
@@ -226,8 +226,11 @@ T2
B2
B2
Here, we avoid incorrect returned values and incorrect cache at the
Here, we avoid incorrect returned values and incorrect cache at the
cost of caching nothing. For this reason, a future ZEO 4 revision
cost of caching nothing.
will require ZODB 4 or earlier.
ZEO 4.2.0 addressed this by using the same locking strategy for
``loadBefore`` that was used for ``load``, thus mitigating B2 the
same way it mitigates T2.
ZEO 5
ZEO 5
-----
-----
...
@@ -252,16 +255,16 @@ asyncio's ``call_soon_threadsafe`` to send invalidations in a client's
...
@@ -252,16 +255,16 @@ asyncio's ``call_soon_threadsafe`` to send invalidations in a client's
thread. This could easily cause invalidations to be sent after loads.
thread. This could easily cause invalidations to be sent after loads.
As shown above, this isn't a problem for ZODB 5, at least assuming
As shown above, this isn't a problem for ZODB 5, at least assuming
that invalidations arrive in order. This would be a problem for
that invalidations arrive in order. This would be a problem for
ZODB 4.
ZODB 4.
For this reason, we require ZODB 5 for ZEO 5.
Note that this approach can't cause invalidations to be sent early,
Note that this approach can't cause invalidations to be sent early,
because they could only be sent by the thread that's busy loading, so
because they could only be sent by the thread that's busy loading, so
scenario 2 wouldn't happen.
scenario 2 wouldn't happen.
To mitigate T1, we could create a thread-safe server-side message
B2
queue that's used when sending results. Unfortunately, this puts us
Because the server send invalidations by calling
back in the position of having to wake up the event loop again (via
``call_soon_threadsafe``, it's impoossible for invalidations to be
``call_soon_threadsafe``). Maybe that's OK
.
send while a load request is being handled
.
The main server opportunity is allowing commits for separate oids to
The main server opportunity is allowing commits for separate oids to
happen concurrently. This wouldn't effect the invalidation/load
happen concurrently. This wouldn't effect the invalidation/load
...
@@ -271,4 +274,3 @@ It would be nice not to block loads while making tpc_finish calls, but
...
@@ -271,4 +274,3 @@ It would be nice not to block loads while making tpc_finish calls, but
storages do this anyway now, so there's nothing to be done about it
storages do this anyway now, so there's nothing to be done about it
now. Storage locking requirements aren't well specified, and probably
now. Storage locking requirements aren't well specified, and probably
should be rethought in light of ZODB5/loadBefore.
should be rethought in light of ZODB5/loadBefore.
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