-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Waiting for commit status. |
@@ -54,6 +54,9 @@ pub enum Subcommand { | |||
#[clap(name = "benchmark", about = "Benchmark runtime pallets.")] | |||
Benchmark(frame_benchmarking_cli::BenchmarkCmd), | |||
|
|||
#[clap(name = "benchmark-storage", about = "Benchmark storage speed.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disclaimer: This CAN CORRUPT YOUR DB so please make a backup before using this on a real snapshot; paritytech/substrate#10897 (comment)
@ggwpez should the command help not mention something to this effect to help end users not "footgun" on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the command as is,will also require the --storage-version
flag, so you cannot just run it accidentally.
The corruption can only occur for RocksDB
, but I agree to make it a bit more explicit.
Maybe even add a --i-used-a-backup
flag?
benchmark-storage
sub-command from Storage benchmarking substrate#10897Disclaimer: This CAN CORRUPT YOUR DB so please make a backup before using this on a real snapshot; discussion