-
Notifications
You must be signed in to change notification settings - Fork 106
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(sync): Pause new downloads when Zebra reaches the lookahead limit #5561
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5561 +/- ##
==========================================
- Coverage 78.84% 78.71% -0.14%
==========================================
Files 305 305
Lines 38126 38178 +52
==========================================
- Hits 30061 30050 -11
- Misses 8065 8128 +63 |
@Mergifyio update |
✅ Branch has been successfully updated |
Do we know why this has started happening now? |
Probably left over from the changes in #4937. We tried tweaking the lookahead limit a few times, but that doesn't seem to help. |
07ff18e
to
230c618
Compare
Syncing worked, but it was pausing for a block timeout every few checkpoints. Apart from that, the logging and sync speed look really good. |
230c618
to
4e687d7
Compare
There are still some timeouts in the logs, but I'll deal with them in another PR. |
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.
This is wonderful, thank you.
@Mergifyio refresh |
✅ Pull request refreshed |
@Mergifyio refresh |
✅ Pull request refreshed |
Motivation
We're seeing a lot of AboveLookaheadLimit errors in full syncs. Instead of dropping those blocks, we should wait for them to verify.
Also we might need more time for a full sync.
Designs
Add a watch channel to the downloader, which gets set when the downloader is a long way away from the state tip. Reset the channel when:
Solution
Syncer fixes:
Related fixes:
Related cleanups:
getblocktemplate-rpcs
alternative to the missing test config file messageReview
Anyone can review this PR, it's a high priority because it fixes errors on
main
.I'm doing a full sync locally to check that it works.
Reviewer Checklist