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

未關閉
#5,281 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
rust, wasm

研究方向

先從 deployment log 和 wasm backtrace 著手,尤其是 BigDecimal#div,然後使用 IPFS hash QmaqjayWnJntBFg5fr4TbvPHhVDG3xbbvuA4FCDaUuxz8X 調查回報的 subgraph 失敗。重現除以零時的 deployment 行為,並確定應發出的確定性錯誤;payload 未命名來源檔案或測試。

由索引模型根據 Issue 內容生成。

描述

bug Stale subgraph errors
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

主要語言
Rust
星號
3.2k
分支
1.1k
平均合併
4 天 1 小時
30 天內合併 PR
1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

graphprotocol/graph-node 的其他 Issue

查看 graphprotocol/graph-node 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。