ivandika3 opened a new pull request, #8818: URL: https://github.com/apache/ozone/pull/8818
## What changes were proposed in this pull request? We tried to use the offline RocksDB compaction tool to delete all the tombstones from the keyTable in OM DB. We used RdbUtil#getLiveSSTFilesForCFs to check for the LiveFileMetadata for the SST files on keyTable and confirmed that the numDeletions are all zero, meaning that all tombstones have been compacted away. However, we saw that the compacted OM DB result in larger number of SST files (14332 -> 16111) and larger size (800GB -> 1.1T). We found out that the OPTIONS files before compaction and after the compaction are different. Notably the block_size is reduced from 16KB to 4KB. This might explain why there are larger number of SST files (due to file splitting) and the size increase (due to lower compression ratio on the smaller blocks). One suspect is that RocksDB#open will simply reinitialize the RocksDB options to the default options (block_size is 4KB by default). We should use RDBStore instead that will use the correct RocksDB configuration in DBProfile (DBProfile#getBlockBasedTableConfig). If this is correct, then this might affect other CLI as well (TransactionInfoRepair, SnapshotChainRepair). Update: From https://github.com/facebook/rocksdb/wiki/RocksDB-Options-File, we can use OptionUtil#loadLatestOptions and pass it during RocksDB open to use the latest options (i.e keep the options unchanged). ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13422 ## How was this patch tested? WIP (tried to extend from the `TestLDBPair`, but encountered some RocksDB assertion error due to RocksDB owning handle assertion). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
