Skip to content

Conversation

siladu
Copy link
Contributor

@siladu siladu commented Apr 7, 2025

PR description

Rather than displaying stats for all column families..

Usage
/opt/besu/current/bin/besu --config-file=/etc/besu/config.toml storage rocksdb x-stats -c BLOCKCHAIN

or

/opt/besu/current/bin/besu --config-file=/etc/besu/config.toml storage rocksdb x-stats --column-family-filter BLOCKCHAIN,TRIE_LOG_STORAGE

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu marked this pull request as ready for review April 8, 2025 05:15
Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you run this subcommand on a non-existent db the error messages are not intuitive - this is not introduced by this PR though

eg

➜  besu git:(rocksdb-stats-filter) ✗ build/install/besu/bin/besu storage rocksdb x-stats -c VARIABLES
Using column family filter: [VARIABLES]
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
➜  besu git:(rocksdb-stats-filter) ✗ build/install/besu/bin/besu storage rocksdb x-stats
Stats for All Column Families...
java.lang.IllegalArgumentException: You must provide the default column family in your columnFamilyDescriptors

siladu and others added 2 commits April 10, 2025 14:23
…e/RocksDbSubCommand.java

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu merged commit 9b03088 into hyperledger:main Apr 10, 2025
43 checks passed
tsamsiyu pushed a commit to tsamsiyu/besu that referenced this pull request Apr 10, 2025
)

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Dmytro Lykhovyi <dmytro.lykhovyi@intellecteu.com>
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.

2 participants