graphprotocol / graphprotocol/graph-node

`BlockStore.chain_head_pointers` gets confused when the same chain is in multiple stores

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

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

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

説明

The method BlockStore.chain_head_pointers iterates over all shards slurping up information about chain head pointers without checking whether that data actually comes from the shard that is configured for any given chain. If a chain is present in more than one store (e.g., because it was moved to another shard) the information returned can be incorrect since old data might clobber new data.

The method needs to make sure that it only reads data from the correct shards. That's complicated a bit by the fact that we want to read all chain head pointers from a shard at once for performance, i.e. one query per shard, rather than one query per chain.

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

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

はじめの一歩

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

調査の方向性

まず BlockStore.chain_head_pointers を見つけ、複数の shard にわたって chain head pointer をどのように収集しているかを読みます。各 chain の設定済み shard がどのように表現されているかを追跡し、その後、1 つの chain が複数の store に存在する場合の結果を検証します。完了の条件は、shard ごとに 1 回のクエリが維持され、古いデータが設定済み shard のデータを上書きできないことです。

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

評価

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

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

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