graphprotocol / graphprotocol/graph-node

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

オープン
#4,123 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area/subgraphs bug
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

store/postgres/src/deployment_store.rs の1437〜1442行付近を読み、unfail ロジックを追ってください。subgraph に fatal error がないにもかかわらず failed flag が設定されたままの場合の動作を確認してください。その状況でその flag がクリアされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
postgresql, rust
領域
databases
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。