-
Notifications
You must be signed in to change notification settings - Fork 379
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
Shred Insertion Abstraction #3637
Conversation
84766d2
to
41c02a9
Compare
@steviez rebased on top of your latest changes. Wasn't too bad really |
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 - this is a nice breakdown of the major "steps" of shred insertion
@behzadnouri - Feel free to review everything if you'd like, but I'm specifically adding you to check this commit: c8dad38 I moved |
also cc @AshwinSekar to take a look.
Don't we want to perform consistency checks after all writes are committed? otherwise e.g. Also, I didn't understand why we need this specific reordering to achieve this:
mind clarifying this further? |
|
this is purely for code readability purposes so we can create the |
@behzadnouri - Any concerns with merging this in? |
The PR overall looks good and I like the reorganization of the code as the old code had become too hairy and error-prone. That said if you guys are confident and comfortable that this is not a concern, it is fine with me to merge the code. Separately, one idea that might help to further reorganize this code is to move |
I share the same concern. I've been running a canary on mainnet for a week or so and haven't observed any misbehavior, so I have some level of confidence here. I like the idea of splitting out the tracker into its own file and building out more of an interface. |
Problem
do_insert_shreds is over 300 lines and very unwieldy.
Summary of Changes
Commits were made to try and make it easier to review in steps:
check_insert_data_shred
. Extend newly completed slots withincheck_insert_data_shred
check_insert_coding_shred
.