Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Co #10897: Storage benchmarking #4982

Merged
merged 4 commits into from
Feb 25, 2022
Merged

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Feb 24, 2022

Disclaimer: This CAN CORRUPT YOUR DB so please make a backup before using this on a real snapshot; discussion

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Feb 24, 2022
@ggwpez ggwpez added A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. B1-releasenotes C1-low PR touches the given topic and has a low impact on builders. labels Feb 24, 2022
@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit c0d6b32 into master Feb 25, 2022
@paritytech-processbot paritytech-processbot bot deleted the oty-storage-bench branch February 25, 2022 20:24
@@ -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.")]
Copy link
Contributor

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?

Copy link
Member Author

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants