[Bug] Moving network subgraph between shards causes empty query / wrong query

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
graphql, rust

調査の方向性

まず Graph Network Subgraph で問題を再現します。subgraphMetadataSearch をクエリし、シャード間で graphman copy create --replace を実行し、元のコピーを削除してから、もう一度クエリします。移動前と移動後の結果を比較します。subgraph をシャード間で移動した後もローカルクエリが同じデータを返せば完了です。

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

説明

bug determinism Stale
Bug report

Note that this only happens for Graph Network Subgraph. Moving other subgraphs are fine
Currently it's QmUzRg2HHMpbgf6Q4VHKNDbtBEJnyp5JWCh2gUX9AV6jXv

Steps to reproduce :

  1. Sync network subgraph from scratch to any index nodes or shard
  2. After synced, try and do a local query using the network subgraph, any types of query that returns some data. Record the data
  3. Perform this graphman copy create --replace <sgdXX> <shard_name> <index_node>
  4. After copying is done, make sure the original copy is deleted or graphman unused remove. Then repeat Step 2 and compare the data
  5. Data returns : {"data":{"subgraphMetadataSearch":[]}}#

My theory : Moving between index nodes is not the issue, but moving between different shards is.
subgraphMetadataSearch returns empty so I think it's IPFS related.

GRAPH_NODE_VERSION="graphprotocol/graph-node:v0.35.1"
INDEXER_SERVICE_VERSION="ghcr.io/graphprotocol/indexer-service-rs:1.3.2"
INDEXER_AGENT_VERSION="ghcr.io/graphprotocol/indexer-agent:v0.21.9"
INDEXER_CLI_VERSION="ghcr.io/graphprotocol/indexer-cli:v0.21.9"
INDEXER_TAP_AGENT_VERSION="ghcr.io/graphprotocol/indexer-tap-agent:v1.7.3"
Relevant log output

No response

IPFS hash

QmUzRg2HHMpbgf6Q4VHKNDbtBEJnyp5JWCh2gUX9AV6jXv

Subgraph name or link to explorer

https://thegraph.com/explorer/subgraphs/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp?view=Query&chain=arbitrum-one

Some information to help us out
  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.
OS information

Linux

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

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

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

はじめの一歩

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

graphprotocol/graph-node のほかの issue

graphprotocol/graph-node の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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