-
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
When creating a snapshot, ledger tool should check the blockstore has the desired slot #26475
Comments
@buffalu - Which version of If you are using a version that has this commit, then it is possible that there is a bug or some case that @apfitzge and I didn't consider with that check. If so, we'd appreciate some more details as this PR was in response to us also being frustrated with the exact same issue you're hitting and wanting to fail fast |
i think it might be another issue which i mentioned in discord. pasting the full comment here:
so the first snapshot at the top level is snapshot-138670016-....tar.zst. time -> is the problem that this snapshot has a gap from the top level snapshot to the start of ledger? you basically need to start at the snapshot that's above the minimum ledger start slot? |
this was downloaded from ny bucket 5 snapshot 138670016. perhaps the issue is that there's no snapshot that lines up with the beginning of ledger start, so you can only start processing from the first snapshot you have? |
Thanks for transcribing - I prefer GH once we hone in on a specific problem.
Yes
Yes, a full snapshot at slot Also, the folder you included is for epoch 321; the slot range is |
Also, you probably already know this but just incase someone less familiar is reading along - the snapshots in |
i didn't know that, thanks for the heads up |
I'd have to dig further to confirm, but I believe we put them in the
Bringing things back to actionable items, did you check which version of |
i was running 1.10.29. is the issue that blockstore had those slots so that passed, but it didn't have the snapshot so it just loaded what it had? |
Ahh, the check was added to master recently, and wasn't backported. So only in master / v1.11. |
To provide more detail, that error comes from here: solana/ledger-tool/src/main.rs Lines 2515 to 2523 in d9eee72
This is after bank_forks are loaded; processing stopped much earlier because you didn't have the blockstore slots to proceed from loaded snapshot slot. From here, it follows that the bank for desired snapshot creation slot doesn't exist either. This error could probably be better, I'll look at tweaking the message to be more clear |
right, it takes ~15 minutes to get there even if you don't have that snapshot. would be nice to catch it earlier |
We catch it earlier in master. If you want to try it out yourself, that'd be cool so we can know for sure. If not, I feel fairly confident and would lean towards closing this issue |
Closing this - #25632 added a check in |
Problem
The feedbackk loop for determining if blockstore has a desired slot is super slow. Takes ~15 minutes to find out that you don't have a desired slot when trying to create a snapshot.
Proposed Solution
When blockstore is loaded, check to make sure the desired slot you'd like to replay to is present
The text was updated successfully, but these errors were encountered: