Skip to content

get-sequencer-info should open DB readonly #3946

@jolestar

Description

@jolestar

Summary

rooch db get-sequencer-info opens RocksDB in read-write mode and collides with a running node, causing lock errors during normal operation.

Impact

Cannot inspect sequencer info while the node is running; command fails due to DB lock contention.

Root cause

Command uses open_rooch_db (read-write) instead of open_rooch_db_readonly.

Proposed fix

Switch to the readonly helper, mirroring other inspection commands:

  • Replace open_rooch_db with open_rooch_db_readonly and pass chain_id accordingly.

Acceptance

  • Running rooch db get-sequencer-info succeeds while the node is running.
  • No RocksDB lock errors; behavior unchanged when node is stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions