Skip to content

HDDS-15466. Make RocksDB bottommost level compaction options configurable for CLI tools#10428

Draft
ptlrs wants to merge 2 commits into
apache:masterfrom
ptlrs:HDDS-15466-Make-RocksDB-BottommostLevelCompaction-options-configurable-for-the-CLI-tool
Draft

HDDS-15466. Make RocksDB bottommost level compaction options configurable for CLI tools#10428
ptlrs wants to merge 2 commits into
apache:masterfrom
ptlrs:HDDS-15466-Make-RocksDB-BottommostLevelCompaction-options-configurable-for-the-CLI-tool

Conversation

@ptlrs
Copy link
Copy Markdown
Contributor

@ptlrs ptlrs commented Jun 4, 2026

What changes were proposed in this pull request?

This PR updates org.apache.hadoop.ozone.repair.ldb.RocksDBManualCompaction and org.apache.hadoop.ozone.om.service.CompactDBUtil

  • Sets default compaction style to kSkip
  • Makes the compaction style configurable
  • Updates related protos

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15466

How was this patch tested?

CI: https://github.com/ptlrs/ozone/actions/runs/26923017311

" Valid values: 0 (kSkip), 1 (kIfHaveCompactionFilter), 2 (kForce)." +
" Default: 0 (kSkip).",
defaultValue = "0")
private int bottommostLevelCompaction;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we use kSkip/kForce for better readability.

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.

2 participants