graphprotocol / graphprotocol/graph-node

[Bug] Deterministic subgraph failures being reported as non-deterministic

Đang mở
#5,587 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug Stale
Ngôn ngữ chính
Rust
Star
3.2k
Fork
1.1k
Merge trung bình
4 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Bug report

These are all examples of deterministic failures that are being incorrectly categorised as non-deterministic failures

Relevant log output
[
  {
    "ipfsHash": "QmWFi6uciaQPQmo1xRrahNwfiWLGeN9GTDJMuCfV8iVXSe",
    "fatalError": {
      "message": "failed to process trigger: Failed to process substreams block: Entity PoolDayData[0xada15f0f68f9e7d4230c97d942616f1db3f2a9c4-19889]: missing value for non-nullable field `date`",
      "block": {
        "number": "20100395",
        "hash": "0x3661643266396331656531393132363362313066313566353236313930396464",
        "__typename": "Block"
      },
      "handler": null,
      "deterministic": false,
      "__typename": "SubgraphError"
    }
  },
  {
    "ipfsHash": "QmaqjayWnJntBFg5fr4TbvPHhVDG3xbbvuA4FCDaUuxz8X",
    "fatalError": "failed to process trigger: block #21586871 (0x158d…6bda), transaction b92f1e508502add12c1c3659e1c300cba3257ba467d21c3b7759a02c8ae5dd26: module instantiation failed: attempted to divide BigDecimal `86400` by zero\twasm backtrace:\t    0: 0x4b99 - <unknown>!~lib/@graphprotocol/graph-ts/common/numbers/BigDecimal#div\t    1: 0x522d - <unknown>!start:src/modules/Rewards\t    2: 0xef4a - <unknown>!~start\t",
    "network": "gnosis",
    "chainHeadBlock": "34909325",
    "latestBlock": "21586870"
  },
  {
    "ipfsHash": "QmVtNnXse2zWVRsfNGW8SxvipS9SVwC7g9qyQMHvUQbqAP",
    "fatalError": "internal constraint violated: duplicate entity FeeRecord[0xf6dc7014f8ae2e55f87d886206d2219e59a0d47f_0xae78736cd615f374d3085123a210448e74fc6393] in result set, block = 17694794",
    "network": "mainnet",
    "chainHeadBlock": "20282368",
    "latestBlock": "17694795"
  },
  {
    "ipfsHash": "QmWFi6uciaQPQmo1xRrahNwfiWLGeN9GTDJMuCfV8iVXSe",
    "fatalError": "failed to process trigger: Failed to process substreams block: Entity PositionSnapshot[736502#20100135]: missing value for non-nullable field `owner`",
    "network": "mainnet",
    "chainHeadBlock": "20282368",
    "latestBlock": "20100134"
  },
  {
    "ipfsHash": "QmPfSbPF6PcT2ETAXMoFCPcz2CaKysRBXcUecHPySK66rk",
    "fatalError": "failed to process trigger: block #198186126 (0xd01a…a2cd), transaction ba2236724306f75a1228af269a4ef5b6c21e2756f17a1fffdbb2f66a58e1883a: Subgraph panicked with message: called `Result::unwrap()` on an `Err` value: MemoryAccessError { _private: () }",
    "network": "arbitrum-one",
    "chainHeadBlock": "231038876",
    "latestBlock": "198186125"
  }
]
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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Báo cáo không nêu tên tệp, kiểm thử hay điểm vào nào. Hãy bắt đầu bằng cách xác định logic gán trường xác định cho các lỗi subgraph, sau đó tái hiện logic đó với các lỗi thiếu trường, chia cho 0, thực thể trùng lặp và WASM được liệt kê; hoàn tất khi các lỗi xác định không còn được báo cáo là không xác định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
backend-api-design, blockchain
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.