graphprotocol / graphprotocol/graph-node

Failed flag should be cleared even if there is no fatal error

Aperta
#4,123 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

area/subgraphs bug
Lingua principale
Rust
Stelle
3.2k
Fork
1.1k
Merge medio
4g 1h
PR unite (30g)
1

Descrizione

We've seen a few times subgraphs that are syncing fine, but have the failed flag set and no fatal error. I'm not sure how this happens, it probably shouldn't, but one thing we can easily address is that the unfail logic is not clearing the failed flag in this situation.

Here it is assuming that if there is no fatal error then the subgraph is not failed:
https://github.com/graphprotocol/graph-node/blob/ee76a6356f79368a61fbb7fbb47ea32568bdd3c7/store/postgres/src/deployment_store.rs#L1437-L1442

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Leggi store/postgres/src/deployment_store.rs intorno alle righe 1437–1442 e segui la logica unfail. Verifica il comportamento quando un subgraph non ha un errore fatale ma ha ancora il failed flag; il lavoro è completato quando quel flag viene cancellato in questa situazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
postgresql, rust
Ambito
databases
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.