Feat/proof backfill batching#21602
Draft
dhyaniarun1993 wants to merge 7 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
op-proofs backfillwrites one MDBX transaction per block. On a 1.2 M-block extension that's 1.2 M commit/fsync round-trips. This PR batches K blocks into a single transaction.--proofs-history.backfill-batch-size(range 1..=100, default 50).Failure semantics
A crash or validation error mid-batch drops the open RW transaction; up to K blocks of progress are lost.
earliestin the proofs DB is unchanged, so the next run resumes from the same anchor and redoes them. Atomicity is preserved at batch granularity, not block granularity.Caveats
Tests
Additional context
Metadata