-
Notifications
You must be signed in to change notification settings - Fork 677
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
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
Outdated
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
chain/client/src/stateless_validation/partial_witness/partial_witness_actor.rs
Show resolved
Hide resolved
chain/client/src/stateless_validation/partial_witness/partial_witness_tracker.rs
Outdated
Show resolved
Hide resolved
chain/client/src/stateless_validation/partial_witness/partial_witness_tracker.rs
Outdated
Show resolved
Hide resolved
chain/client/src/stateless_validation/partial_witness/partial_witness_tracker.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.
LGTM, left a few minor comments
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:
![image](https://private-user-images.githubusercontent.com/30928612/399955107-53723050-a341-43d8-b15c-5dea7a61f2b9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTAxNjIsIm5iZiI6MTczOTA0OTg2MiwicGF0aCI6Ii8zMDkyODYxMi8zOTk5NTUxMDctNTM3MjMwNTAtYTM0MS00M2Q4LWIxNWMtNWRlYTdhNjFmMmI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIxMjQyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMzk4OWNkN2Y3MjA3YWZhZjUzZTM3NDczY2M5NGFmZDU0YmU1OTRjOGFjODNhZjliNjdjMzhlNTg2OGU5ZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mqTrg5JeZA6gIZfIWNa_KzxeBEgC67U49iNMV7uGbOw)
The image originates from a forknet experiment with 50 nodes, with each state witness artificially padded to reach a size of 30 MB.