-
Notifications
You must be signed in to change notification settings - Fork 980
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
[Bug] Spurious issue with subgraph deployments #4724
Comments
Found some relevant logs from our e2e tests:
Which is very unusual because block 100 definitely exists on |
hey @paymog could you possibly run with |
Totally, how do I do that? I searched for EDIT: nvm found it! Here are some logs which seem relevant
Maybe this is uncovering some reliability issues with firehose? |
The error from firehose is eaten up (never displayed in the logs or back to the user) and there is no retry mechanism. graph-node/graph/src/firehose/endpoints.rs Line 387 in 27cbcdd
Error could be one of:
IMHO, the IPFS call is made with a retry, I don't see why the "get_block" from firehose shouldn't also be done with a retry mechanism. |
This is where the (legitimate?) error gets replaced by "Block Not Found": graph-node/core/src/subgraph/registrar.rs Line 527 in 27cbcdd
The fetch block should be 1) retried (2 or 3 times is more than enough) and the error should bubble up (ex: connection error...) instead of being replaced by a BlockNotFound. |
good catch @sduchesneau! |
Bug report
We have an end to end test suite which does many subgraph deployments. We're find that our tests spuriously fail with
subgraph validation error: [the specified block must exist on the Ethereum network]
. In our test suite, we always deploy subgraphs with against mainnet with start blocks in the range of 0-100.We can't reliably reproduce the issue but do find it happens often on different tests. Our API calls the
subgraph_deploy
on graph node and this is the full message that's returned:subgraph validation error: [the specified block must exist on the Ethereum network]
.We're running graph node v0.31.0.
Relevant log output
No response
IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out
OS information
None
The text was updated successfully, but these errors were encountered: