-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix pre-check of blockstore slots during load_bank_forks #25632
Fix pre-check of blockstore slots during load_bank_forks #25632
Conversation
163d099
to
e2e3ccc
Compare
Codecov Report
@@ Coverage Diff @@
## master #25632 +/- ##
=======================================
Coverage 82.1% 82.1%
=======================================
Files 621 621
Lines 170297 170297
=======================================
+ Hits 139917 139955 +38
+ Misses 30380 30342 -38 |
Measured the time this check takes on the case where I ran into in devnet:
so approximately 6us/slot, though probably some noise there since it's a small sample size. Checking an entire epoch's worth of slots that'd take roughly 2.5s base on this measurement. |
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
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
…ana-labs#25632)" This reverts commit 934da5e.
Problem
Check I added in #25329 was too restrictive. It's possible we having missing blocks in the range, but can still generate a snapshot.
Summary of Changes
Update the blockstore slots check to iterate from the starting slot -> halt_slot using
slot_meta.next_slots
.Fixes #