graphprotocol / graphprotocol/graph-node

[Bug] Subgraphs failing with non-deterministic error when attempting to divide BigInt by 0

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

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

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

説明

Bug report

Subgraph deployment fails with a non-deterministic error that should be deterministic

Relevant log output
failed to process trigger: block #21586871 (0x158d…6bda), transaction b92f1e508502add12c1c3659e1c300cba3257ba467d21c3b7759a02c8ae5dd26: module instantiation failed: attempted to divide BigDecimal `86400` by zero wasm backtrace: 0: 0x4b99 - <unknown>!~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal#div 1: 0x522d - <unknown>!start:src/modules/Rewards 2: 0xef4a - <unknown>!~start
IPFS hash

QmaqjayWnJntBFg5fr4TbvPHhVDG3xbbvuA4FCDaUuxz8X

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

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

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

はじめの一歩

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

調査の方向性

deployment log と wasm backtrace、特に BigDecimal#div から始め、次に IPFS hash QmaqjayWnJntBFg5fr4TbvPHhVDG3xbbvuA4FCDaUuxz8X を使って、報告された subgraph の失敗を調査してください。ゼロ除算時の deployment の動作を再現し、どの決定論的エラーを出力すべきかを明らかにしてください。payload にはソースファイルもテストも記載されていません。

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

評価

技術スタック
rust, wasm
領域
backend, blockchain
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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