Skip to content

Conversation

@weimingdiit
Copy link
Contributor

What changes were proposed in this pull request?

Both CompactDBService and CompactionService offer excellent database compression performance for the OM Active Object Space (AOS). They appear very similar. We should combine these two services and use only one of them.

What is the link to the Apache JIRA

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

How was this patch tested?

unit tests,workflow

@weimingdiit weimingdiit marked this pull request as ready for review January 24, 2026 02:53
@weimingdiit
Copy link
Contributor Author

weimingdiit commented Jan 26, 2026

@jojochuang @ChenSammi @adoroszlai Hi, could you please review this PR?

@adoroszlai adoroszlai added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Jan 27, 2026

try {
// Find CF Handler
RocksDatabase.ColumnFamily columnFamily = rocksDatabase.getColumnFamily(tableName);
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO we have still not eliminated duplicate code here via this patch, both compactFully and compactTableOnDemand have similar code.
A better way would be to keep the CompactDBService.java and rename it to something like CompactDBUtil and include a method that does same as compactFully which can be used in both the places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants