Skip to content

store: Skip chains on shards with no connection pool#6441

Open
dimitrovmaksim wants to merge 1 commit intographprotocol:masterfrom
dimitrovmaksim:fix/skip-zero-pool-shards
Open

store: Skip chains on shards with no connection pool#6441
dimitrovmaksim wants to merge 1 commit intographprotocol:masterfrom
dimitrovmaksim:fix/skip-zero-pool-shards

Conversation

@dimitrovmaksim
Copy link
Member

@dimitrovmaksim dimitrovmaksim commented Mar 17, 2026

Resolves #6195

Addresses a startup failure when pool_size = 0 for a chain's shard. Two cases are handled:

  • Chain is configured in config.toml and it's shard has pool_size = 0 — treated as a misconfiguration; graph-node panics with an actionable message.
    Note: if the configured shard differs from the shard recorded in the DB, the check is performed against the DB shard, since the config is ignored in that case. (maybe we should panic here as well)
  • Chain is not in config.toml but present in the DB — graph-node normally builds a chain store for such chains. If pool_size = 0 for the chain's
    shard, it is now skipped with a warning instead of panicking.

@dimitrovmaksim dimitrovmaksim self-assigned this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Node Startup Fails When Using pool_size = 0 for Unused Shard Connections

1 participant