Skip to content

Conversation

@mszeszko-meta
Copy link
Contributor

Summary:
Compression is unused in production, making this dead code that adds unnecessary complexity.

Core changes:

  • Remove compression field from BlobDBOptions
  • Remove compression/decompression methods (GetCompressedSlice,
    DecompressSlice, BlobDecompressor)
  • Simplify ReadBlobFromOldFile and GetBlobValue to handle only
    uncompressed blobs
  • Update compaction filter to skip compression/decompression

CLI tool cleanup:

  • Remove --blob_db_compression_type flag from db_bench (Stacked BlobDB)
  • Remove --show_uncompressed_blob from blob_dump tool
  • Remove --dump_uncompressed_blobs from ldb dump/file_dump commands
  • blob_dump_tool now fails fast with NotSupported for compressed files

Tests:

  • Remove compression-related tests (Compression, DecompressAfterReopen,
    EnableDisableCompressionGC, ChangeCompressionGC)

Reviewed By: xingbowang

Differential Revision: D91088957

Summary:
Compression is unused in production, making this dead code that adds unnecessary complexity.

Core changes:
- Remove `compression` field from `BlobDBOptions`
- Remove compression/decompression methods (`GetCompressedSlice`,
  `DecompressSlice`, `BlobDecompressor`)
- Simplify `ReadBlobFromOldFile` and `GetBlobValue` to handle only
  uncompressed blobs
- Update compaction filter to skip compression/decompression

CLI tool cleanup:
- Remove `--blob_db_compression_type` flag from db_bench (Stacked BlobDB)
- Remove `--show_uncompressed_blob` from blob_dump tool
- Remove `--dump_uncompressed_blobs` from ldb dump/file_dump commands
- blob_dump_tool now fails fast with NotSupported for compressed files

Tests:
- Remove compression-related tests (`Compression`, `DecompressAfterReopen`,
  `EnableDisableCompressionGC`, `ChangeCompressionGC`)

Reviewed By: xingbowang

Differential Revision: D91088957
@meta-codesync
Copy link

meta-codesync bot commented Jan 27, 2026

@mszeszko-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91088957.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant