Skip to content
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

Subgraph recover from non-determinstic error doesn't update status #2932

Closed
evaporei opened this issue Oct 27, 2021 · 0 comments · Fixed by #2934
Closed

Subgraph recover from non-determinstic error doesn't update status #2932

evaporei opened this issue Oct 27, 2021 · 0 comments · Fixed by #2934
Assignees
Labels
bug Something isn't working

Comments

@evaporei
Copy link
Contributor

evaporei commented Oct 27, 2021

Definition

Subgraphs that fail for non-deterministic reasons, whenever they recover, their status doesn't get updated to failed: false.

Example

Let's say subgraph X failed for non-deterministic reasons at block 120. Everytime graph-node restarts, we'll process blocks up until 120 until it works. Since we're talking about a non-determinstic error, it might work on a second/third/... time.

The bug is that whenever that recover happens, the subgraph continues marked as failed, even though it's deployment block pointer is already at a number > 120.

How to fix it?

Our unfail function now only works for determinstic errors, it should consider those (non-deterministic) as well.

On a second note, @leoyvens suggested a retry strategy that doesn't require graph-node's restart. It isn't required for the bug to be fixed, but it's a great improvement. This will be tracked here: #2945

Related to: #2885

@evaporei evaporei added the bug Something isn't working label Oct 27, 2021
@evaporei evaporei self-assigned this Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant