graphprotocol / graphprotocol/graph-node
[Bug] Moving network subgraph between shards causes empty query / wrong query
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 1.1k
- Merge medio
- 4g 1h
- PR unite (30g)
- 1
Descrizione
Bug report
Note that this only happens for Graph Network Subgraph. Moving other subgraphs are fine
Currently it's QmUzRg2HHMpbgf6Q4VHKNDbtBEJnyp5JWCh2gUX9AV6jXv
Steps to reproduce :
- Sync network subgraph from scratch to any index nodes or shard
- After synced, try and do a local query using the network subgraph, any types of query that returns some data. Record the data
- Perform this
graphman copy create --replace <sgdXX> <shard_name> <index_node> - After copying is done, make sure the original copy is deleted or
graphman unused remove. Then repeat Step 2 and compare the data - 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
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema con il Graph Network Subgraph: interroga subgraphMetadataSearch, esegui graphman copy create --replace tra gli shard, rimuovi la copia originale e interroga di nuovo. Confronta i risultati prima e dopo lo spostamento; il lavoro è completato quando la query locale restituisce gli stessi dati dopo che il subgraph è stato spostato tra gli shard.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- graphql, rust
- Ambito
- backend-api-design, distributed-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100