-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Missing ranges collector #6583
Missing ranges collector #6583
Conversation
893e082
to
8b87da7
Compare
8b87da7
to
e3eb909
Compare
e3eb909
to
cc67f50
Compare
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.
@Qwerty5Uiop if to set FIRST_BLOCK
and LAST_BLOCK
in order to index specific blocks range or a single block, they are ignored and index starts for the whole range of blocks.
60ed6bd
to
964f5f1
Compare
98138d8
to
a6e55c5
Compare
a6e55c5
to
ba8b310
Compare
Hi, I'm using this patch, and block_catchup fetcher doesn't work any more, it can't index any new blocks
|
@ericlee42 could elaborate a bit more more? Do you see new blocks appear in the DB? This fetcher should restart from the head of the chain once all current ranges have been processed. @Qwerty5Uiop please correct me if Iam wrong. @ericlee42 do you see the same behavious with the latest master branch? |
No, it doesn't work.
the result have been unchanged |
@ericlee42 can you reproduce this bug with the latest master branch? |
yes, i'm using latest master commit. |
Are you using any prod chain in order to reproduce the issue? or some testing environment? It would help us a lot, if you can provide us details for reproduction. |
it's running on testing environment. I have tested with last commit from this patch and it works. so I guess there should be some bugs here. |
FYI, I'm using this config
|
So, you're using latest master branch of this commit 41474d5, the chain is producing new blocks, and new blocks do not apper in the Blockscout DB, right? Can you provide logs from the Blockscout instance? Which type of node are you using? |
chain is working. and I'm using geth. I don't think log is helpful
|
Could you please post the response from
? |
|
It looks like, ranges collector didn't start at all. If unset DISABLE_WEBAPP, will change the behaviour? |
nope, still not working |
Hi @ericlee42! Yes, I found a bug in this functionality for the first launch on empty database. I will fix it ASAP, but for now, can you please run the app one more time and check if the problem is gone? |
No, I have restarted the explorer many times |
Hello? do you have a plan to fix it? @Qwerty5Uiop |
Hello @ericlee42! Sorry for the delay. Could you try #6687 and check if it works now? |
Okay, lemme try it out |
Resolves #6566
Motivation
Currently, catchup indexer tries to fetch all missing block ranges at the start. That can cause performance issues if there is a large amount of total blocks.
Changelog
Moved missing ranges tracking to a separate GenServer and split missed ranges query into batches.
Docs update: blockscout/docs#100