Prune Auto Issue

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
backend, databases

調査の方向性

graph/src/data/subgraph/mod.rs の603行目付近から始め、min_history_blocks が未設定の場合に prune:auto が history_blocks をどのように決定するかを追跡します。説明されているマニフェスト設定で graph-node 0.37.0 のデプロイ失敗を再現します。prune:auto の意図された処理を決定し、デプロイが subgraph_manifest_history_blocks_check 制約に違反しなくなれば完了です。

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

説明

pruning question Stale

A user ran into this error after setting prune: auto in his manifest:

Failed to deploy to graph node 0.0.0.0:8020/: subgraph deployment error: store error: new row for relation "subgraph_manifest" violates check constraint "subgraph_manifest_history_blocks_check"

He is running graph-node 0.37.0 locally and does not have a min_history_blocks set in his environment variables. We may want to set this as a high number for a default figure (eg 100,000). Alternatively it might be better to remove the auto option and require the user state the specific history_blocks desired in the manifest.

https://github.com/graphprotocol/graph-node/blob/776afa14c324614abc84a72587f199cd7681153a/graph/src/data/subgraph/mod.rs#L603

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

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

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

はじめの一歩

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

graphprotocol/graph-node のほかの issue

graphprotocol/graph-node の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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