graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.91k stars 971 forks source link

[Bug] graphman fails to show the info when there are many entries #5476

Open rotarur opened 5 months ago

rotarur commented 5 months ago

Bug report

graphman fails to show the list when there are many entries

Relevant log output

➜  ~ kubectl exec -ti index-node-community-quarantine-0 -- bash -c "graphman info -s sgd723071"
Defaulted container "graph-node" out of: graph-node, sysctl (init)
name      | levi0522/uniswap
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | levi0522/uniswap-v2
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | levi0522/uniswap-v2
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | levi0522/uniswap-v2
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | ianlapham/uniswap-v2-dev
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/latest
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/v118615
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/v118615
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/latest
status    | unused
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/latest
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u51331/s39941/v118615
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u75140/s60826/latest
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u75140/s60826/v160551
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | uniswap/uniswap-v2
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u75140/s63138/latest
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---
----------+-------------------------------------------------------------------
name      | u75140/s63138/v166905
status    | current
id        | QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE
namespace | sgd723071
shard     | uniswap_a
active    | false
chain     | mainnet
node_id   | ---

➜  ~ kubectl exec -ti index-node-community-quarantine-0 -- bash -c "graphman info -s QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE"
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: ["levi0522/uniswap", "unused", "QmZzsQGDmQFbzYkv2qx4pVnD6aVnuhKbD3t1ea7SAvV7zE", "sgd723071", "uniswap_a", "false", "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}}.51830
   5: graphman::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
command terminated with exit code 101

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

OS information

Linux

shiyasmohd commented 3 months ago

@rotarur Are you still getting this error. I tried this as well and it gave all the deployments without any errors