graphprotocol / graphprotocol/graph-node
Indexing completely fails if firehose goes down
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm running graph-node version 0.27.
My graph node is configured with both an RPC provider and a firehose source like so:
[chains.mainnet]
shard = "primary"
provider = [
{ label = "mainnet-default", transport = "rpc", url = "<url to rpc provider>", features = [] },
{ label = "firehose", details = { type = "firehose", url = "<url to firehose>" }},
]
If I start graph-node and then kill my firehose instance, all indexing seems to stop, even though the rpc provider is still available.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
- start a firehose grpc server
- start a graph node with a rpc and firehose provier
- deploy a subgraph and verify that graph node starts indexing
- kill the firehose server
- deploy a new subgraph
- see the new subgraph never starts indexing
What is the expected behavior?
I expect graph-node to gracefully fall back to the rpc provider when the firehose server isn't available (whether that's due to network issues or internal errors in the firehose server or anything else).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
RPC と firehose の両方のプロバイダーを含む [chains.mainnet] 設定で問題を再現します。インデックス作成を開始し、firehose サーバーを停止して、新しい subgraph をデプロイします。プロバイダーの選択とインデックス作成の起動時の動作を調査し、firehose が利用できない場合に新しい subgraph が RPC 経由でインデックス作成を開始することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- grpc, rust
- 領域
- backend, distributed-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100