graphprotocol / graphprotocol/graph-node
[Bug] Failed query is not logged
オープン
まだ誰も着手していません。
bug
Stale
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Bug report
For some failed queries, graph-node fails silently, not logging any error.
Ex.:
`http post http://localhost:8080/subgraphs/id/QmQohvyxLZLpwouzPF61kTzmLjgawmt6qDWZrPndz1M9EQ query='query MyQuery { _meta { block { number } } }'`
would return
`{
"errors": [
{
"message": "Store error: database unavailable"
}
]
}
`
but there are no indication of an error related to this query in the graph-node logs, making
the detection of the error very difficult on a sharded production environment.
`graph-node v0.29.0`
Relevant log output
no log output
IPFS hash
No response
Subgraph name or link to explorer
No response
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
None
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、graph-node に対して失敗した _meta クエリを再現し、その GraphQL エラーがどのように処理され、ログに記録されるかを追跡します。Issue にはソースファイルやテストの指定がありません。完了条件は、失敗したクエリが graph-node のログに有用なエントリを生成しつつ、報告されたレスポンスを引き続き返すことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, rust
- 領域
- api, backend, observability
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100