rocksdb/utilities/blob_db
Peter Dillinger 1ba60ee9ee Restore blob_dump_tool compression support (partially revert PR #14266) (#14382)
Summary:
PR https://github.com/facebook/rocksdb/issues/14266 ("Remove compression support") removed compression-related functionality from blob_dump_tool and ldb commands. While this was valid for the legacy stacked BlobDB (which no longer supports compression), the integrated blob storage (`enable_blob_files`) uses the same blob file format and fully supports compression via `blob_compression_type`.

This partial revert restores the ability to view uncompressed blob data from compressed blob files, which is essential for debugging and analysis of integrated blob storage.

Restored functionality:
- `blob_dump --show_uncompressed_blob` option
- `ldb dump --dump_uncompressed_blobs` option
- `ldb dump_live_files --dump_uncompressed_blobs` option
- Related ldb_test.py test coverage

The decompression implementation in utilities/blob_db/blob_dump_tool.cc has been updated to use the modern
`GetBuiltinV2CompressionManager()->GetDecompressorOptimizeFor()` API.

Suggested follow-up:
* Tests for blob_dump (or integrate it into sst_dump/ldb?)

Pull Request resolved: https://github.com/facebook/rocksdb/pull/14382

Test Plan:
Restored ldb_test.py
Some manual testing

Reviewed By: mszeszko-meta

Differential Revision: D94257588

Pulled By: pdillinger

fbshipit-source-id: c6d8a556a51ec9422df208ae161806ccc1f20b36
2026-02-24 14:10:13 -08:00
..
blob_compaction_filter.cc Remove inline values support (#14270) 2026-01-28 16:08:10 -08:00
blob_compaction_filter.h Remove FIFO eviction support (#14268) 2026-01-28 14:02:49 -08:00
blob_db.cc Remove bytes_per_sync config option (#14276) 2026-01-28 23:13:03 -08:00
blob_db.h Remove unused public APIs (#14277) 2026-01-29 00:04:09 -08:00
blob_db_gc_stats.h Standardize on clang-format version 18 (#13233) 2024-12-19 10:58:40 -08:00
blob_db_impl.cc Remove deprecated DB::Open raw pointer variants (and more) (#14335) 2026-02-17 23:33:39 -08:00
blob_db_impl.h Remove dead code and unused includes (#14278) 2026-01-29 00:53:52 -08:00
blob_db_impl_filesnapshot.cc Remove blob_dir config option (#14275) 2026-01-28 22:05:33 -08:00
blob_db_iterator.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
blob_db_listener.h Remove FIFO eviction support (#14268) 2026-01-28 14:02:49 -08:00
blob_db_test.cc Remove deprecated DB::Open raw pointer variants (and more) (#14335) 2026-02-17 23:33:39 -08:00
blob_dump_tool.cc Restore blob_dump_tool compression support (partially revert PR #14266) (#14382) 2026-02-24 14:10:13 -08:00
blob_dump_tool.h Restore blob_dump_tool compression support (partially revert PR #14266) (#14382) 2026-02-24 14:10:13 -08:00
blob_file.cc Remove dead code and unused includes (#14278) 2026-01-29 00:53:52 -08:00
blob_file.h Remove dead code and unused includes (#14278) 2026-01-29 00:53:52 -08:00