[Bug] graphman fails to copy a SG in failed state

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

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

評価

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

調査の方向性

graphman copy create で失敗状態のフローを再現し、その後、特に node/src/manager/display.rs と List::append を中心に、graphman copy と info のパスを調査してください。失敗したデプロイメントのコピーが、失敗したコピーを作成せずに拒否されること、および対象のデプロイメントを表示する際に graphman info がパニックしなくなっていることを確認してください。

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

説明

area/graphman bug ops Stale
Bug report

When I try to copy a SG which is in failed state in the original shard I get this error

graphman copy create Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso shard_l index_node_near_0
Defaulted container "graph-node" out of: graph-node, sysctl (init)
Error: store error: can not copy deployment Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso[687669] because it has failed
command terminated with exit code 1

After this If I try to perform a graphman info I get this error which prevents me to use it further with the Hash

graphman info -s Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso
Defaulted container "graph-node" out of: graph-node, sysctl (init)
thread 'main' panicked at node/src/manager/display.rs:17:13:
there are 14 headers but the row has 8 entries: ["apolopayapp/mainnet", "current", "Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso", "sgd696771", "shard_l", "false", "near-mainnet", "---"]
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: graph_node::manager::display::List::append
   3: graph_node::manager::commands::info::run
   4: graphman::main::{{closure}}
   5: graphman::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
command terminated with exit code 101

But I see it created the copy in the new shard

Defaulted container "graph-node" out of: graph-node, sysctl (init)
name      | apolopayapp/mainnet
status    | current
id        | Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso
namespace | sgd696771
shard     | shard_l
active    | false
chain     | near-mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | iochando/apolopaytesting
status    | pending
id        | Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso
namespace | sgd696771
shard     | shard_l
active    | false
chain     | near-mainnet
node_id   | ---

It shouldn't allow to copy it throwing a warning and do not create the copy in failed state in the new shard. This new failed copy eventually get removed but until then I can't use the graphman accordingly

Relevant log output

No response

IPFS hash

Qmck8CbUSdxStMDT4VzHUXdJyGjbSYcJ3bv9EroxjXbYso

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

macOS

主要言語
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 を短くまとめたダイジェスト。