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

Add parity-db variant for trie benchmarks#5827

Merged
3 commits merged intomasterfrom
nv-paritydb-bench
Apr 30, 2020
Merged

Add parity-db variant for trie benchmarks#5827
3 commits merged intomasterfrom
nv-paritydb-bench

Conversation

@NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Apr 29, 2020

No description provided.

@NikVolf NikVolf added the A0-please_review Pull request needs code review. label Apr 29, 2020
DatabaseType::ParityDb => {
Arc::new(ParityDbWrapper(
parity_db::Db::open(
&parity_db::Options::with_columns(self.0.path(), 1)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@NikVolf NikVolf Apr 29, 2020

Choose a reason for hiding this comment

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

with those settings getting this error message, probably on reopen copied files

2020-04-29 17:05:30 Starting Trie read benchmark(empty database (200 keys), db_type: ParityDb)
2020-04-29 17:05:30 Started reindex for index 00_16
2020-04-29 17:05:30 Started reindex for index 00_17
2020-04-29 17:05:30 Eror replaying log: Corruption("Missing table"). Reverting
thread 'main' panicked at 'Failed to get key: db error: "Trie lookup error: Invalid state root: 0x978a92e555f0b502acfd735de980638138c37bbff2e3dfa66e7fe53384d3d541"', bin/node/bench/src/trie.rs:187:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Copy link
Member

Choose a reason for hiding this comment

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

This is caused by lots of collisions that come from prefixed keys. So either prefixes should be stripped (as in #5769) or uniform option should not be used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

@NikVolf NikVolf added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels Apr 29, 2020
Copy link
Contributor

@gnunicorn gnunicorn left a comment

Choose a reason for hiding this comment

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

lgtm

@gnunicorn
Copy link
Contributor

bot merge

@ghost ghost merged commit 268450a into master Apr 30, 2020
@ghost ghost deleted the nv-paritydb-bench branch April 30, 2020 07:33
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants