-
Notifications
You must be signed in to change notification settings - Fork 658
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
feat: parallel partial witness handling in the partial witness actor #12656
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12656 +/- ##
=======================================
Coverage 70.59% 70.59%
=======================================
Files 847 847
Lines 173209 173250 +41
Branches 173209 173250 +41
=======================================
+ Hits 122271 122302 +31
- Misses 45825 45841 +16
+ Partials 5113 5107 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
chain/client/src/stateless_validation/partial_witness/partial_witness_actor.rs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall other than a few minor comments
"Received invalid partial encoded state witness" | ||
); | ||
} | ||
Err(err) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't particularly like how we have the handling of the cases here but I don't see another way out due to the async spawn..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I wasn't sure what to do about it either
The PR unblocks the main thread of the
PartialWitnessActor
by detaching the handling of the partial witnesses to separate threads.This results in a considerable reduction in the distribution latency of the state witness:
The image originates from a forknet experiment with 50 nodes, with each state witness artificially padded to reach a size of 30 MB.