Skip to content

Conversation

@hotpxl
Copy link
Contributor

@hotpxl hotpxl commented Jun 6, 2025

See facebook/rocksdb#13671 for more details, but TLDR is when both change_level and level_compaction_dynamic_level_bytes are set, RocksDB will try to thrash the data between L1 and L6. Under level_compaction_dynamic_level_bytes, the intention is to fill up the "base" level first to reduce storage amplification, so we should not set change_level

Fixes #2601

@hotpxl hotpxl changed the title Unset change_level if level_compaction_dynamic_level_bytes is enabled fix: Unset change_level if level_compaction_dynamic_level_bytes is enabled Jun 6, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 7, 2025

Copy link
Member

@LindaSummer LindaSummer left a comment

Choose a reason for hiding this comment

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

Thanks very much for your effort!

@LindaSummer LindaSummer merged commit 14abba4 into apache:unstable Jun 8, 2025
36 of 37 checks passed
Copy link

@ddekob15-boop ddekob15-boop left a comment

Choose a reason for hiding this comment

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

A

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.

rocksdb::CompactRangeOptions.change_level is not compatible with level_compaction_dynamic_level_bytes

4 participants