Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threading #807

Merged
merged 5 commits into from
Feb 6, 2020
Merged

Threading #807

merged 5 commits into from
Feb 6, 2020

Conversation

ashamis
Copy link
Contributor

@ashamis ashamis commented Feb 5, 2020

  • When using Raft we now assign a TLS connection to a thread and have that thread run the entire tx execution pipeline.
  • Fix several other miscellaneous concurrency issues.

This is part of #774

@ashamis ashamis requested a review from a team as a code owner February 5, 2020 22:33
src/crypto/symmkey.cpp Outdated Show resolved Hide resolved
src/ds/logger.h Outdated Show resolved Hide resolved
src/crypto/symmkey.cpp Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Feb 6, 2020

threading_aaaa_5@4589 aka 20200206.6 vs master ewma over 30 builds from 4233 to 4581
images

@codecov-io
Copy link

codecov-io commented Feb 6, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@a8a97a0). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #807   +/-   ##
=========================================
  Coverage          ?   77.61%           
=========================================
  Files             ?      150           
  Lines             ?    11503           
  Branches          ?        0           
=========================================
  Hits              ?     8928           
  Misses            ?     2575           
  Partials          ?        0
Flag Coverage Δ
#e2e_BFT 52.19% <100%> (?)
#e2e_CFT 70.02% <100%> (?)
#unit_BFT 53.79% <100%> (?)
#unit_CFT 68.77% <100%> (?)
Impacted Files Coverage Δ
src/node/rpc/memberfrontend.h 79.86% <ø> (ø)
src/consensus/raft/raft.h 82.21% <ø> (ø)
src/kv/kv.h 85.98% <ø> (ø)
src/ds/messaging.h 100% <ø> (ø)
src/node/nodestate.h 82.1% <ø> (ø)
src/consensus/pbft/libbyz/Client_proxy.h 78.01% <ø> (ø)
src/host/nodeconnections.h 93.15% <ø> (ø)
src/apps/luageneric/luageneric.cpp 74.75% <ø> (ø)
src/tls/pem.h 80% <ø> (ø)
src/node/rpc/frontend.h 76.92% <ø> (ø)
... and 14 more

@jumaffre
Copy link
Contributor

jumaffre commented Feb 6, 2020

AFAICS, there's still an issue in the encryptor where a key could be deleted (rollback or compact) while a transaction is being encrypted. As discussed, we should make sure we do not return a reference to a key in get_encryption_key() but a shared pointer? We can definitely sort this out in a separate PR though!

@ashamis ashamis merged commit 3cfb42e into microsoft:master Feb 6, 2020
@ashamis ashamis deleted the threading_aaaa_5 branch February 6, 2020 13:59
eddyashton pushed a commit to eddyashton/CCF that referenced this pull request Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants