Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade rocksdb to 0.22 #853

Merged
merged 2 commits into from
Aug 10, 2024
Merged

Upgrade rocksdb to 0.22 #853

merged 2 commits into from
Aug 10, 2024

Conversation

jasl
Copy link
Contributor

@jasl jasl commented Jul 28, 2024

Although Parity has recommended paritydb for a long time, polkadot-sdk still has not started the deprecation process for rocksdb.

I think we should give some love to the rocksdb. This PR upgrade to its latest version would help to reduce a few outdated dependencies. for example, bitflags 1.3.0

@jasl
Copy link
Contributor Author

jasl commented Jul 28, 2024

@bkchr Could you help to take a look at this?

@@ -905,7 +905,7 @@ rocksdb.db.get.micros P50 : 2.000000 P95 : 3.000000 P99 : 4.000000 P100 : 5.0000
assert!(settings.contains(" block_size: 323232"));

// LRU cache (default column)
assert!(settings.contains("block_cache_options:\n capacity : 8388608"));
assert!(settings.contains("block_cache_options:\n capacity : 115343360"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't checked why it changed here, but this should be OK.

Copy link
Member

Choose a reason for hiding this comment

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

The cache size was probably changed? Can you maybe check that in the changelogs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The change may relate to https://github.com/facebook/rocksdb/blob/main/HISTORY.md#public-api-changes-10

I can dig more if you think this is important

@jasl
Copy link
Contributor Author

jasl commented Aug 10, 2024

Humbly ping @ggwpez @ordian

Could you help to review this PR?

@ggwpez ggwpez merged commit 2f1866d into paritytech:master Aug 10, 2024
6 checks passed
@jasl jasl deleted the upgrade-rocksdb branch August 10, 2024 14:48
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.

4 participants