Repository navigation
Update Zstd minimum for RocksDB and Titan - #4
Merged
Sergey Madaminov (sergey-ditto) merged 1 commit intoNov 24, 2026
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Sergey Madaminov (sergey-ditto)
marked this pull request as ready for review
November 24, 2026 20:47
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributes to BIG2-1471
Summary
Require
zstd-sys 2.2.0in the RocksDB and Titan bindings. It bundles native Zstd1.6.0, which fixes CVE-2026-124851. This lets the two storage bindings share the patched library with the maintained Kafka fork when Ditto enables Kafka Zstd support.Upstream history. Ditto inherited the
<=2.0.13cap from TiKV’s April 2025 manual compaction change. The original PR leaves the reason for the cap unspecified. In October 2026, TiKV removed the cap in both RocksDB and Titan and adopted a2.1.2minimum after validating compression, compaction, and Titan blob reads. This PR follows that approach with the CVE-patched2.2.0minimum. Original cap · Upstream removalAfter this PR merges, update getditto/ditto#28640 to the landed RocksDB revision and refresh its lockfiles. The maintained
ditto/send_batch_0.38.0Kafka branch already acceptszstd-sys 2.2.0.Verification
zstd-sys 2.2.0+zstd.1.6.0forlibrocksdb_sysandlibtitan_sys.1.5.6, wrote and compacted it with1.6.0, then reopened it with1.5.6and verified all 2,000 records in each database. The harness confirmed Zstd-compressed SSTs and Titan blobs.1.5.6and1.6.0read each other’s batches. Each verified all 48 mixed LZ4 and Zstd records byte-for-byte and at the expected offsets.1.6.0, including HTTP request decoding, peer-response compression, and MongoDB wire compression.test_compression,test_titandb, andtest_compact_range_bottommost_level_compactionpassed withencryption,portableand Ditto’sRUSTC_BOOTSTRAP=1setting on macOS ARM64.vnext, and standalone load-generator graphs all resolvezstd-sys 2.2.0+zstd.1.6.0under--locked.Downstream Linux AMD64 CI
Ditto #28640 tested this PR’s commit
9bae363.zstd-sys 2.2.0+zstd.1.6.0. Store · CDC · vNext smoke binaries · Load generatorldbandsst_dumpbuild with Ubuntu’s Zstd package. The Cargo version check covers the Rust service binaries. Store DockerfileCodex prepared the two manifest changes and ran the verification above.