Closed
Conversation
…anager Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Copied from https://github.com/ahamlat/RocksdDB-Column-Families-Size Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
|
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
| String size = rocksdb.getProperty(cfHandle, "rocksdb.estimate-live-data-size"); | ||
| boolean emptyColumnFamily = false; | ||
| if (!size.isEmpty() && !size.isBlank()) { | ||
| long sizeLong = Long.parseLong(size); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
| String totolSstFilesSize = rocksdb.getProperty(cfHandle, "rocksdb.total-sst-files-size"); | ||
| if (!totolSstFilesSize.isEmpty() && !totolSstFilesSize.isBlank()) { | ||
| out.println( | ||
| "Total size of SST Files : " + formatOutputSize(Long.parseLong(totolSstFilesSize))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
| String liveSstFilesSize = rocksdb.getProperty(cfHandle, "rocksdb.live-sst-files-size"); | ||
| if (!liveSstFilesSize.isEmpty() && !liveSstFilesSize.isBlank()) { | ||
| out.println( | ||
| "Size of live SST Filess : " + formatOutputSize(Long.parseLong(liveSstFilesSize))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
This reverts commit 8722162. Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
besu/src/main/java/org/hyperledger/besu/cli/subcommands/operator/TrieLogSubCommand.java
Fixed
Show fixed
Hide fixed
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
|
|
||
| out.printf("Current head block number: %d\n", blockchain.getChainHead().getHeight()); | ||
| out.printf("Trie log layers to retain: %d\n", layersToRetain); | ||
| final long deleteBelowHere = blockchain.getChainHead().getHeight() - layersToRetain + 1; |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
17 tasks
21 tasks
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added some subcommands for debugging...
(based on https://github.com/ahamlat/RocksdDB-Column-Families-Size)
Steps to install on a box: