What changed in RocksDB from 10 to 11

6 releases numbered after v10.10.1 up to and including v11.13.2, stable releases only. v10.10.1 and v11.13.2 are the newest stable releases of 10 and 11 we track; this page follows them as new ones ship.

76 changes across 6 releases

Added 31

v11.13.2

  • Added FileSystem::IsPreallocationSupported(), allowing a FileSystem that never preallocates file space to return false so DB open skips reopening and truncating the last WAL file
  • Added the experimental DBOptions::track_options_file_number_in_manifest rollout option (with C and Java bindings), which persists the option in each OPTIONS file and commits the OPTIONS file number and column-family create/drop snapshots in MANIFEST
  • Added EncodeEntry(), PackSequenceAndType(), and UnPackSequenceAndType() in rocksdb/utilities/types_util.h, and kInternalKeyFooterSize exposing the footer size in bytes
  • Added ldb update_manifest --rebind_options_file --options_file=OPTIONS-<number> for offline repair of a committed MANIFEST OPTIONS file number

v11.12

  • Added FullExternalTableFactory and related full-mode external table APIs that preserve RocksDB internal keys, enabling external tables to support nonzero sequence numbers, point and single deletions, merge operands, blob indexes, wide-column entities, snapshots, live DB writes, and multi-level compactions
  • Added experimental coroutine capability interfaces for basic and full ExternalTableReader implementations, allowing coroutine-capable readers to initiate file reads through FSRandomAccessFile::SubmitReadAsync()
  • Added PutRangeDeletionBlock(), GetRangeDeletionBlock(), and IsDeleteRangeSupported() to the external table interfaces so formats can opt in to range deletions using RocksDB's raw range-deletion metadata block
  • Opaque PreparedFileInfo metadata can now be serialized to a checksummed representation with SerializePreparedFileInfo() and restored with DeserializePreparedFileInfo() for reuse across processes
  • Added WriteBufferFlushPolicy and WriteBufferManager policy selection for flushing the oldest or largest column family, including configurable batched flushing of the largest column families across DBs sharing a manager, with C and Java bindings

v11.8.1

  • Added DBOptions::read_io_executor_threads to increase the maximum thread count of the shared filesystem read I/O executor used for asynchronous reads when opening a DB, without ever reducing the shared executor thread count
  • Added the FILE_SUBMIT_ASYNC_READ_FALLBACK ticker to count calls that fall back to synchronous reads
  • Added callback-based asynchronous read APIs DB::GetAsync() and DB::MultiGetAsync(), where RocksDB suspends its internal coroutine read path during IO and invokes the user callback on completion
  • Added FSRandomAccessFile::SubmitReadAsync() filesystem API, where the filesystem is responsible for eventually invoking the callback
  • Added FileSystem::GetReadExecutor(), which returns the IO executor whose EventBases run coroutine read processing
  • Added FlushOptions::listener_wait (default false) so that DB::Flush() with wait=true does not return until registered EventListener::OnFlushCompleted callbacks have finished
  • Added C API rocksdb_flushoptions_set_listener_wait() and rocksdb_flushoptions_get_listener_wait()
  • Added RangeLockManagerHandle::SetIsKilledCallback(), allowing a blocked GetRangeLock() wait to return Status::Aborted promptly when the callback returns true
  • Added MultiScanArgs::reverse to support reverse MultiScan reads over bounded scan ranges
  • Added EXPERIMENTAL embedded blob SST support through SstFileWriter::OpenWithEmbeddedBlobs(), storing eligible large values as same-file blob records in block-based SST files

v11.1.2

  • SstFileReader::Get and SstFileReader::MultiGet overloads accepting PinnableSlice and std::vector<PinnableSlice>* for zero-copy reads when the underlying TableReader supports pinning
  • block_decompress_count counter in PerfContext
  • open_files_async option that performs SST file validation in the background instead of during DB open, with open errors surfaced as the new background error kAsyncFileOpen
  • BlockBasedTableOptions::kAuto index block search type that chooses binary or interpolation search per index block based on key distribution uniformity
  • uniform_cv_threshold option in BlockBasedTableOptions to configure the uniformity threshold for kAuto index search (default: 0.2)
  • enforce_write_buffer_manager_during_recovery option to enforce WriteBufferManager during WAL recovery (default: true)
  • memtable_batch_lookup_optimization option to reuse the skip list search path across consecutive keys in memtable MultiGet, reducing per-key lookup cost
  • BlockBasedTableOptions::PrepopulateBlockCache::kFlushAndCompaction to prepopulate the block cache during both flush and compaction, inserting compaction-warmed blocks at BOTTOM priority
  • verify_manifest_content_on_close mutable DB option (default: false) that validates MANIFEST records on DB close and rewrites the MANIFEST from in-memory state if corruption is detected

v11.1.1

  • Added `SstFileReader::Get` and `SstFileReader::MultiGet` overloads that accept `PinnableSlice` and `std::vector<PinnableSlice>*`, enabling zero-copy reads when the underlying `TableReader` supports pinning
  • Added block_decompress_count to PerfContext

v11.0.4

  • Re-removed deprecated DB::Open raw pointer variants in db.h
Changed 20

v11.13.2

  • Read-path range tombstone conversion now runs only for iterators with read_tier = kReadAllTier
  • With max_bgerror_resume_count <= 0, a retryable or file-scoped IO error during compaction or flush is now a hard background error that stops writes until DB::Resume() is called, instead of being silently retried for compactions or treated as a soft error for flushes
  • Perf context counters and timers no longer call the thread-local init function of perf_context on every update, reducing counter update cost by about 60% with kEnableCount

v11.12

  • ExternalTableFactory::NewTableReader() now receives an already-opened FSRandomAccessFile and its file size instead of requiring implementations to reopen file_path
  • TableProperties::creation_time is renamed to oldest_ancestor_time, and TablePropertiesNames::kCreationTime is renamed to kOldestAncestorTime; the old names remain as deprecated aliases
  • SstFileMetaData::oldest_ancester_time is renamed to oldest_ancestor_time, with the old name kept as a deprecated alias
  • When ExternalTableBuilderBase::PutPropertiesBlock() returns NotSupported, num_entries, raw_key_size, and raw_value_size are overridden from GetTableProperties() with logical totals tracked by the external-table adapter, while format-specific properties such as data_size are unchanged
  • The FSWritableFile passed to ExternalTableFactory::NewTableBuilder() now reports logical file size including RocksDB-buffered data and exposes the underlying file's direct-I/O mode and required buffer alignment
  • Iterator::Refresh() now returns NotSupported on iterators from a secondary DB's DB::NewIterators(), which are pinned to one cross-column-family read view; iterators from DB::NewIterator() are unaffected
  • SstFileReader now reports standard SST read statistics and file I/O listener notifications, and honors the configured read rate limiter
  • Single Get coroutine reads using non-mmap, non-direct I/O on a kFSBuffer-capable FileSystem now use FSRandomAccessFile::SubmitReadAsync() instead of falling back to synchronous Read(); when rate-limited, these reads acquire their full token budget before submission, which can make physical I/O burstier

v11.8.1

  • Changed the experimental FSRandomAccessFile::SubmitReadAsync() API to return whether the asynchronous path was used
  • When DBOptions::avoid_unnecessary_blocking_io is true, obsolete OPTIONS-* files found during DB open are deleted by background purge instead of synchronously on the opening thread
  • Read statistics for entities (BYTES_READ, BYTES_PER_READ, and per-key byte counts for GetEntity/MultiGetEntity) and ReadOptions::value_size_soft_limit now measure entities by payload size instead of serialized entity size
  • ReadOptions::value_size_soft_limit now also bounds blob values resolved from pre-flush blob direct write references during MultiGet/MultiGetEntity, always reading at least one key and returning Status::Aborted for subsequent keys once the limit is exceeded
  • Reduced copying when reading wide-column entities with blob-referenced columns on point-lookup and blob-backed memtable/direct-write read paths by referencing columns in place rather than re-serializing the entity
  • When using LockWAL(), live-file capture APIs such as checkpoint and backup now flush WAL-disabled unpersisted data and may block until UnlockWAL() or return Aborted on the same thread holding LockWAL()
  • UnlockWAL() must now be called from the same thread that called LockWAL()

v11.1.2

  • Experimental ExternalTableReader::Get and ExternalTableReader::MultiGet now use PinnableSlice instead of std::string for output values, enabling zero-copy pinning; this breaks existing implementations

v11.1.1

  • Changed experimental feature `ExternalTableReader::Get` and `ExternalTableReader::MultiGet` to use `PinnableSlice` instead of `std::string` for output values, enabling zero-copy pinning
Fixed 22

v11.13.2

  • Fixed a secondary instance with open_files_async = true getting stuck after TryCatchUpWithPrimary() returned PathNotFound for a table file that the primary deleted before the background opener reached it
  • Fixed blob direct write with more than one concurrent flush of a column family, where a later flush sealed and published the blob files of the oldest pending memtable instead of its own, causing flushes to fail with Corruption: VersionBuilder: Blob file already added and the database to stop
  • Fixed data loss with min_tombstones_for_range_conversion and external file ingestion, where an iterator whose view predated the ingestion could convert the deleted keys around the ingested keys into a range tombstone that deleted them
  • Fixed a data loss bug where an iterator with ReadOptions::read_tier = kMemtableTier could, with min_tombstones_for_range_conversion enabled, insert a range tombstone that deleted live keys stored only in SST files
  • Fixed two SstFileManager trash accounting leaks: retrying a failed trash deletion after the file had disappeared, and a trash file deleted whose directory sync then failed, leaving the file's size in total and tracked trash size until restart
  • Fixed SstFileManager trash accounting leaking the size of a queued trash file that disappeared before deletion, which could make later deletions immediate instead of rate limited
  • Fixed MultiGet with ReadOptions::async_io returning NotSupported when io_uring initialization or an asynchronous read submission fails, now falling back to synchronous reads
  • Fixed subset checkpoints so their newest OPTIONS file lists only the column families retained by the checkpoint, preventing LoadLatestOptions from recreating dropped column families

v11.12

  • Fixed full recovery from retryable background errors to atomically advance WAL replay boundaries for all column families, preventing partial recovery of multi-column-family write batches after a failed recovery flush
  • Fixed RocksDB builds on big-endian architectures such as s390x by disabling the optional persistent fault-injection log, whose binary format is little-endian-only
  • Fixed DB::ClipColumnFamily() deleting a non-L0 SST file whose largest key equals begin_key, which lost keys at the start of the kept range
  • Fixed swapped oldest_key_time and newest_key_time values in the table_file_creation event log entry
  • Fixed ExternalTableReader::VerifyChecksum() results not being honored by the external table adapter
  • Fixed a manifest handling bug that could lead to a hang or memory corruption when LSM sanity checks are fatally violated
  • Fixed MultiGet() with ReadOptions::read_tier == kBlockCacheTier reading data blocks from disk when allow_mmap_reads is false; keys whose data block is not in the block cache now return Status::Incomplete(), as Get() does
  • Fixed trace replay failing every read record on the default column family with Corruption: Invalid Column Family ID when the default column family handle was not passed
  • Fixed multi-threaded Replayer::Replay() ignoring errors from executing trace records and returning OK; it now stops and returns the error, as single-threaded replay does
  • Fixed secondary DB NewIterators() returning iterators from different database states or blocking for TryCatchUpWithPrimary() by serving the last completed catch-up view

v11.8.1

  • Fixed slow DB open with best_efforts_recovery and slow catch-up of secondary and follower instances, whose time and memory previously grew quadratically with the number of files in the DB

v11.1.2

  • Closing a read-only DB instance no longer deletes live SST files created by a concurrent read-write DB sharing the same directory
  • IODispatcher no longer leaks prefetch memory accounting when ReadIndex() moves block values out of ReadSet, which previously blocked subsequent prefetches when max_prefetch_memory_bytes was set

v11.1.1

  • Fixed a memory accounting leak in IODispatcher where ReadIndex() moved block values out of ReadSet without releasing the associated prefetch memory, causing subsequent prefetches to be blocked when max_prefetch_memory_bytes was set
Removed 1

v11.12

  • Removed the deprecated IngestExternalFileOptions::write_global_seqno option and its C, Java, and ldb APIs, TableProperties::external_sst_file_global_seqno_offset, and the file_offset output from ExternalTableReader::GetPropertiesBlock()
Deprecated 2

v11.12

  • TablePropertiesNames has been deprecated in the public API because it has no apparent use

v11.8.1

  • Deprecated PinnableWideColumns::serialized_size() in favor of PinnableWideColumns::payload_size(), which returns the total size of column names and values

Original release notes, newest first

The list above is our reading of these notes; the originals from Meta are here, one fold per release.

v11.13.2RocksDB 11.13.2
11.13.2 (10/28/2026)
Bug Fixes
  • Fixed a secondary instance with open_files_async = true getting stuck after TryCatchUpWithPrimary() returned PathNotFound for a table file that the primary deleted before the background opener reached it.
  • Fixed blob direct write with more than one concurrent flush of a column family: a later flush sealed and published the blob files of the oldest pending memtable instead of its own, so flushes failed with Corruption: VersionBuilder: Blob file #N already added and the database stopped.
11.13.1 (10/23/2026)
Bug Fixes
  • Fixed data loss with min_tombstones_for_range_conversion and external file ingestion. An iterator whose view predated the ingestion could convert the deleted keys around the ingested keys into a range tombstone that deleted them. This happened when the file got no new sequence number (sequence number zero, ingest_behind, or allow_db_generated_files), and when an iterator was created during the ingestion.
  • Fixed a data loss bug where an iterator with ReadOptions::read_tier = kMemtableTier could, with min_tombstones_for_range_conversion enabled, insert a range tombstone that deleted live keys stored only in SST files. Read-path range tombstone conversion now runs only for iterators with read_tier = kReadAllTier.
11.13.0 (10/21/2026)
New Features
  • Added FileSystem::IsPreallocationSupported(). A FileSystem that never preallocates file space can return false so that DB open skips reopening and truncating the last WAL file.
Public API Changes
  • Added the experimental DBOptions::track_options_file_number_in_manifest rollout option (with C and Java bindings). The option is persisted in each OPTIONS file. When enabled, RocksDB durably creates an OPTIONS file and then commits its file number in MANIFEST. Column-family create/drop commits the configuration snapshot and membership in one MANIFEST record. A newer tracked OPTIONS file without a commit is ignored after a crash, while a newer OPTIONS file written with tracking disabled retains the legacy highest-numbered-file behavior. Batched column-family changes publish one snapshot; after partial success it can be a safe superset that persisted-options APIs filter against live MANIFEST membership. Ordinary DB::Open continues to use caller-supplied options and does not depend on the operational snapshot.
  • Added EncodeEntry(), PackSequenceAndType(), and UnPackSequenceAndType() in rocksdb/utilities/types_util.h to construct internal keys and pack or unpack their sequence numbers and entry types. kInternalKeyFooterSize exposes the footer size in bytes.
  • Added ldb update_manifest --rebind_options_file --options_file=OPTIONS-<number> for offline repair of a committed MANIFEST OPTIONS file number. Operators must select a trusted snapshot that has MANIFEST tracking enabled and provide any external DB/CF allocation roots that are not serialized in OPTIONS.
Behavior Changes
  • With max_bgerror_resume_count <= 0 (auto resume disabled), a retryable or file-scoped IO error during compaction or flush is now a hard background error that stops writes until DB::Resume() is called. Previously, compaction errors were silently retried, and flush errors with a healthy WAL were soft errors that let writes continue while flushes were stopped.
Bug Fixes
  • Fixed two more SstFileManager trash accounting leaks: retrying a failed trash deletion immediately (for example with rate limiting disabled) after the file had disappeared, and a trash file that was deleted but whose directory sync then failed. In both cases the file's size stayed in the total trash size and tracked size until restart.
  • Fixed SstFileManager trash accounting leaking the size of a queued trash file that disappeared before deletion (for example because its directory was renamed). The leaked bytes stayed in the total trash size until restart, which could push every later deletion past max_trash_db_ratio and make it immediate instead of rate limited.
  • Fixed MultiGet with ReadOptions::async_io returning NotSupported when io_uring initialization or an asynchronous read submission fails. It now checks async I/O support on the reading thread and falls back to synchronous reads when needed.
  • Fixed subset checkpoints so their newest OPTIONS file lists only the column families retained by the checkpoint. This applies with both legacy highest-numbered OPTIONS selection and MANIFEST-tracked OPTIONS selection, and prevents LoadLatestOptions from recreating column families that the subset checkpoint intentionally dropped from its copied MANIFEST.
Performance Improvements
  • Perf context counters and timers no longer call the thread-local init function of perf_context on every update. With kEnableCount, a counter update costs about 60% less.

View originalPermalink

v11.12
New Features
  • Added FullExternalTableFactory and related full-mode external table APIs that preserve RocksDB internal keys, enabling external tables to support nonzero sequence numbers, point and single deletions, merge operands, blob indexes, wide-column entities, snapshots, live DB writes, and multi-level compactions.
Public API Changes
  • Added experimental coroutine capability interfaces for basic and full ExternalTableReader implementations. Coroutine-capable external readers can initiate file reads through FSRandomAccessFile::SubmitReadAsync().
  • ExternalTableFactory::NewTableReader() now receives an already-opened FSRandomAccessFile and its file size instead of requiring implementations to reopen file_path. The supplied file preserves RocksDB's direct-I/O alignment handling, rate limiting, read statistics and listener notifications, prefetching, and synchronous, asynchronous, and batched reads.
  • Added PutRangeDeletionBlock(), GetRangeDeletionBlock(), and IsDeleteRangeSupported() to the external table interfaces so formats can opt in to range deletions using RocksDB's raw range-deletion metadata block.
  • Opaque PreparedFileInfo metadata can now be serialized to a checksummed representation with SerializePreparedFileInfo() and restored with DeserializePreparedFileInfo() for reuse across processes.
  • Removed the deprecated IngestExternalFileOptions::write_global_seqno option and its C, Java, and ldb APIs, TableProperties::external_sst_file_global_seqno_offset, and the file_offset output from ExternalTableReader::GetPropertiesBlock(). Existing external SST files whose global sequence number was rewritten without updating the properties-block checksum remain readable.
  • TablePropertiesNames has no apparent use in the public API so has been deprecated there.
  • TableProperties::creation_time is renamed to oldest_ancestor_time, which better describes its meaning, along with TablePropertiesNames::kCreationTime to kOldestAncestorTime. The misspelled SstFileMetaData::oldest_ancester_time is renamed to oldest_ancestor_time. The old names remain available as deprecated aliases and will be removed in a future release.
  • Added WriteBufferFlushPolicy and WriteBufferManager policy selection for flushing the oldest or largest column family, including configurable batched flushing of the largest column families across DBs sharing a manager, with C and Java bindings.
Behavior Changes
  • When ExternalTableBuilderBase::PutPropertiesBlock() returns NotSupported, RocksDB now overrides num_entries, raw_key_size, and raw_value_size from ExternalTableBuilderBase::GetTableProperties() with the logical totals tracked by the external-table adapter. Format-specific properties such as data_size remain unchanged.
  • The FSWritableFile passed to ExternalTableFactory::NewTableBuilder() now reports logical file size including RocksDB-buffered data and exposes the underlying file's direct-I/O mode and required buffer alignment.
  • Iterator::Refresh() now returns NotSupported on iterators from a secondary DB's DB::NewIterators() only, because those iterators are pinned to one cross-column-family read view. Iterators from DB::NewIterator() are unaffected; to advance a batch, call DB::NewIterators() again after TryCatchUpWithPrimary().
  • SstFileReader now reports standard SST read statistics and file I/O listener notifications, and honors the configured read rate limiter.
Bug Fixes
  • Fixed full recovery from retryable background errors to atomically advance WAL replay boundaries for all column families, preventing partial recovery of multi-column-family write batches after a failed recovery flush.
  • Fixed RocksDB builds on big-endian architectures such as s390x by disabling the optional persistent fault-injection log, whose binary format is little-endian-only.
  • Fixed DB::ClipColumnFamily() deleting a non-L0 SST file whose largest key equals begin_key, which lost keys at the start of the kept range.
  • Fixed swapped oldest_key_time and newest_key_time values in the table_file_creation event log entry.
  • Fixed ExternalTableReader::VerifyChecksum() results not being honored by the external table adapter.
  • Fixed a bug in manifest handling that could lead to a hang or memory corruption in the case of LSM sanity checks being fatally violated (exceptional; see force_consistency_checks).
  • Fixed MultiGet() with ReadOptions::read_tier == kBlockCacheTier reading data blocks from disk when allow_mmap_reads is false. Keys whose data block is not in the block cache now return Status::Incomplete(), the same as Get().
  • Fixed trace replay (DB::NewDefaultReplayer(), db_bench replay) failing every read record (Get, MultiGet, iterator seek) on the default column family with Corruption: Invalid Column Family ID when the default column family handle was not passed, which is always the case in db_bench with --num_column_families=1.
  • Fixed multi-threaded Replayer::Replay() ignoring errors from executing trace records and returning OK. It now stops and returns the error, including Status::NotSupported() from executing a record, as single-threaded replay does.
  • Fixed secondary DB NewIterators() returning iterators from different database states or blocking for TryCatchUpWithPrimary() by serving the last completed catch-up view.
Performance Improvements
  • Single Get coroutine reads using non-mmap, non-direct I/O on a kFSBuffer-capable FileSystem now use FSRandomAccessFile::SubmitReadAsync() instead of falling back to synchronous Read(). When rate-limited, these reads acquire their full token budget before submission to preserve a single filesystem-owned buffer, which can make physical I/O burstier than reads using caller-provided buffers.

View originalPermalink

v11.8.1RocksDB 11.8.1
11.8.1 (2026-07-28)
Public API Changes
  • Add DBOptions::read_io_executor_threads to increase the maximum thread count of the shared filesystem read I/O executor used for asynchronous reads when opening a DB. Opening a DB never reduces the shared executor thread count. Change the experimental FSRandomAccessFile::SubmitReadAsync() API to return whether the asynchronous path was used, and add the FILE_SUBMIT_ASYNC_READ_FALLBACK ticker to count calls that fall back to synchronous reads.
Performance Improvements
  • When DBOptions::avoid_unnecessary_blocking_io is true, obsolete OPTIONS-* files found during DB open are deleted by background purge instead of synchronously on the opening thread.
11.8.0 (2026-07-28)
Public API Changes
  • Add callback-based asynchronous read APIs, DB::GetAsync() and DB::MultiGetAsync(). The idea is that when IO is required, RocksDB can suspend its internal coroutine read path, allowing the read executor thread to do other work. When the IO is complete, RocksDB invokes the user callback. This requires filesystem support for full performance benefits. A new filesystem API FSRandomAccessFile::SubmitReadAsync() is introduced for this. Unlike ReadAsync, the filesystem is responsible for eventually calling the callback. FileSystem::GetReadExecutor() returns the IO executor whose EventBases run coroutine read processing. In the Posix filesystem, an IO-uring based event loop is used to complete the IO.
  • Added FlushOptions::listener_wait (default false). When set together with FlushOptions::wait == true, DB::Flush() will not return until the registered EventListener::OnFlushCompleted callbacks for the flushed memtables have finished running. By default (false), Flush(wait=true) may return as soon as the flush result is committed, which can be before (or while) the OnFlushCompleted callbacks execute on the background flush thread. Also added the corresponding C API rocksdb_flushoptions_set_listener_wait() / rocksdb_flushoptions_get_listener_wait().
  • Deprecated PinnableWideColumns::serialized_size() in favor of the new PinnableWideColumns::payload_size(), which returns the total size of the columns' names and values (for a plain value this equals the value size). Relatedly, wide-column read accounting changed subtly: read statistics for entities (BYTES_READ, BYTES_PER_READ, and the per-key byte counts for GetEntity/MultiGetEntity) and the ReadOptions::value_size_soft_limit threshold now measure entities by this payload size instead of the serialized entity size. This drops serialization framing bytes from those measurements (so reported/limited sizes for entity reads are slightly smaller than before) and makes plain-value and wide-column accounting consistent.
Behavior Changes
  • ReadOptions::value_size_soft_limit now also bounds the blob values resolved from pre-flush blob direct write references during MultiGet/MultiGetEntity (previously these were resolved after the limit check and read without bound). Enforcement is "always make progress": at least one key is read even if its value alone exceeds the limit, and only once the returned size exceeds the limit do subsequent keys get Status::Aborted -- so a caller retrying the aborted keys cannot loop forever on a single value that by itself exceeds the limit.
Performance Improvements
  • Reduced copying when reading wide-column entities that have blob-referenced columns, whether stored in separate blob files or embedded (same-file) as blob records in the same SST. On the point-lookup (GetEntity/MultiGetEntity) and blob-backed memtable/direct-write read paths, resolving these columns no longer re-serializes the whole entity into a fresh buffer: inline columns are referenced in place in the pinned entity and each resolved blob value is referenced in place from its fetched buffer. This is enabled by an internal change to PinnableWideColumns that lets its columns reference multiple backing buffers.
11.7.0 (2026-07-16)
Public API Changes
  • Added RangeLockManagerHandle::SetIsKilledCallback(), a std::function<bool()> predicate polled during range-lock waits. When it returns true, a blocked GetRangeLock() wait returns promptly with Status::Aborted() instead of waiting for the lock timeout. Range-lock users that install no callback keep the original wait-until-grant-or-timeout behavior.
  • Added MultiScanArgs::reverse to support reverse MultiScan reads over bounded scan ranges.
Behavior Changes
  • When using LockWAL(), live-file capture APIs such as checkpoint and backup now flush WAL-disabled unpersisted data; they can block until UnlockWAL() or return Aborted when called from the same thread that holds LockWAL() to avoid deadlock. UnlockWAL() must now also be called from the same thread that called LockWAL().
Performance Improvements
  • Fixed slow DB open with best_efforts_recovery, and slow catch-up of secondary and follower (read-only) instances, in which time and memory grew quadratically with the number of files in the DB (so the slowdown was worst for large DBs with long history).
11.6.0 (2026-07-02)
New Features
  • Added EXPERIMENTAL embedded blob SST support through SstFileWriter::OpenWithEmbeddedBlobs(), storing eligible large values as same-file blob records in block-based SST files and resolving them transparently for reads. This niche feature currently supports uncompressed embedded blobs only; compression options are placeholders and compression support is deferred to follow-up work.
Public API Changes
  • Expanded the C API (include/rocksdb/c.h) with a large set of new rocksdb_* functions, mostly option getters/setters plus table-properties, job/event-listener, and metadata accessors, a WAL filter, a ReadOptions table filter, and a backup exclude-files callback. Many are now produced by a new semi-automated generator (tools/c_api_gen/) from the C++ headers; include/rocksdb/c.h remains a single self-contained header and the signatures of pre-existing functions are unchanged.
Bug Fixes
  • Reverted PR14831 that made range_lock_manager aware of reverse-order CF
  • Fixed a bug in RandomAccessFileReader::ReadAsync where an already-aligned direct-IO read request with a null scratch and a caller-provided aligned_buf would take the "already aligned" fast path and submit the null buffer to the underlying async read (e.g. a null iovec base to io_uring, failing with EFAULT). This could surface as spurious iterator failures during async prefetch (MultiScan with async IO) on direct-IO databases. The async path now allocates a backing buffer in this case, matching the synchronous Read path.
  • Fixed a bug where closing a read-only DB instance could delete live SST files created by a concurrent read-write DB sharing the same directory.
11.5.0 (2026-06-16)
New Features
  • External table readers that open files through ExternalTableOptions::fs now update RocksDB SST/file-read statistics and file IO listener callbacks, making external file IO activity visible in existing read metrics.
  • Added DB::PrepareFileIngestion(), a two-phase form of IngestExternalFile/IngestExternalFiles. PrepareFileIngestion() performs all of the work that does not require the DB mutex (validating the arguments, reading each external file's metadata, and linking/copying the files into the DB) and returns an opaque FileIngestionHandle. DB::CommitFileIngestionHandle() (or DB::CommitFileIngestionHandles() for several handles at once) then makes the prepared files visible; multiple handles are committed atomically in a single MANIFEST write, or none are. FileIngestionHandle::Abort() (or simply destroying the handle) cancels a prepared ingestion and rolls it back. This gives flexibility to the application to Prepare a file separately from when its committed, and may shorten an applications critical path on IngestExternalFile.
  • Added two stats histograms reporting the per-call latency (in microseconds) of each successful IngestExternalFile/IngestExternalFiles call, split by phase: rocksdb.ingest.external.file.prepare.micros (argument validation and reading/validating/linking the external files, which does not block live writes) and rocksdb.ingest.external.file.run.micros (the ingestion performed under the DB mutex while live writes are blocked). Failed ingestions are not recorded.
  • Added DBOptions::use_direct_io_for_compaction_reads (default false). When enabled, compaction-input SST reads use O_DIRECT while user reads remain buffered, avoiding page-cache eviction of hot user-read data by sequential compaction scans. Pair with use_direct_io_for_flush_and_compaction = true on write-heavy workloads for direct I/O on both compaction inputs and outputs. Rejected at Open when combined with allow_mmap_reads = true. No-op when use_direct_reads = true is already set (since all reads are already direct).
Public API Changes
  • DB::GetPreparedFileInfoForExternalSstIngestion() can now prepare metadata for a live DB-generated SST file so it can be passed to IngestExternalFileArg::file_infos. The input path must exactly match a live table file owned by the source DB, and the returned metadata handle must outlive the ingestion.
  • ExternalSstFileInfo gained a prepared_file_info member produced by SstFileWriter::Finish, and IngestExternalFileArg gained a file_infos field: a vector of borrowed const PreparedFileInfo* pointers, parallel to external_files. The owning ExternalSstFileInfo::prepared_file_info handle must outlive the ingestion. When set, IngestExternalFiles() reuses the supplied per-file metadata instead of re-opening and scanning each file to recompute it, avoiding that extra I/O.
  • Corrected the public C++ option spelling from memtable_veirfy_per_key_checksum_on_seek to memtable_verify_per_key_checksum_on_seek. RocksDB continues to accept the old misspelled OPTIONS-file key for compatibility, while newly serialized OPTIONS files use the corrected key.
  • Added experimental read-scoped block buffer provider API, configured through ReadOptions::read_scoped_block_buffer_provider, for supported block-based table iterator scans and MultiScan reads to use caller-provided read-scoped storage for final data-block contents. When configured, supported provider-backed scan data-block reads bypass the data-block cache. The provider is ignored when mmap reads are enabled. RocksDB may still use ordinary temporary scratch for serialized block bytes, such as when a block may be compressed. Get and MultiGet do not currently provide API guarantees for this provider.
  • Added FileSystem::SyncFile() and Env::SyncFile() public APIs for syncing or fsyncing a file by name without requiring callers to reopen it as writable.
Behavior Changes
  • The default compression for column families is now kLZ4Compression rather than kSnappyCompression. This affects only column families that do not explicitly set compression, and only newly-written SST files. The change is fully compatible: existing data remains readable with no migration needed, as RocksDB selects the decompressor per block. LZ4 offers slightly better compression ratios and decompression CPU efficiency vs. Snappy and similar compression CPU, tested across various server CPUs. When support is not compiled in, the fallback path for default compression is LZ4 -> Snappy -> NoCompression.
  • Disable parallel compression (ignore CompressionOptions::parallel_threads) for fast built-in compressors: Snappy, LZ4 (accelerated, not LZ4HC), and accelerated levels of ZSTD (level < 0). These do not generally benefit from parallel compression. This behavior can be overridden with a custom Compressor from a custom CompressionManager.
  • PosixFileSystem::OptimizeForCompactionTableRead now delegates to the base FileSystem::OptimizeForCompactionTableRead implementation before applying its Linux-only compaction-readahead clamp (added for #12038). The returned FileOptions::use_direct_reads therefore reflects DBOptions::use_direct_reads, consistent with the base class and with other FileSystem implementations. Previously the override ignored the base implementation and keyed both the returned options and the Linux readahead clamp off the incoming FileOptions rather than DBOptions. At the in-tree call site the incoming FileOptions::use_direct_reads already matches DBOptions::use_direct_reads, so this is effectively a no-op for existing configurations; it removes a latent inconsistency where a caller passing FileOptions whose use_direct_reads disagreed with DBOptions would have had the global flag silently ignored for compaction-input reads on Linux. (Note: the #12038 readahead clamp still keys off the global use_direct_reads; it is not skipped for the compaction-only use_direct_io_for_compaction_reads path, since that flag enables O_DIRECT after this hook runs.)
  • Brought more unity to kLZ4Compression and kLZ4HCCompression by giving each access to the other's compression levels. Negative (fast) values previously only available to LZ4 and positive (slow) values previously only available to LZ4HC are now available to both, so configuring a non-default compression_opts.level now selects the LZ4 compressor variant. This is a behavior change for previously tolerated but dubious configurations such as positive compression level with kLZ4Compression. kLZ4Compression and kLZ4HCCompression keep their effective default levels, equivalent to -1 and 9 respectively.
  • Removed a discontinuity in kZSTD compression levels at compression_opts.level == 0 by mapping that setting to level = -1 rather than to level = 3 as the ZSTD library does internally. This improves the compression auto-tuning landscape.
Bug Fixes
  • Fixed a bug where the range lock manager would crash with an assertion failure when using a reverse comparator column family.
Performance Improvements
  • Reduced commit latency when ingesting many external files by allowing IngestExternalFileOptions::file_opening_threads to open table readers for committed ingested files using multiple threads.
  • Reduced commit latency for large external file ingestions into the last level by adding IngestExternalFileOptions::prefetch_lmax_index_and_filter_blocks, which can skip commit-time index and filter block prefetching for cache-backed table metadata.
11.4.0 (2026-06-02)
Public API Changes
  • Added rocksdb_options_set_memtable_batch_lookup_optimization() and rocksdb_options_get_memtable_batch_lookup_optimization() to the C API, exposing the existing AdvancedColumnFamilyOptions::memtable_batch_lookup_optimization field. This allows C API users (and downstream language bindings) to enable the skip-list memtable's batch-lookup optimization for MultiGet, which caches the search path between consecutive keys and reduces per-key cost from O(log N) to O(log d) where d is the distance between consecutive keys.
  • Added rocksdb_readoptions_set_optimize_multiget_for_io() and rocksdb_readoptions_get_optimize_multiget_for_io() to the C API, exposing the existing ReadOptions::optimize_multiget_for_io field. This allows C API users (and downstream language bindings) to opt out of the multi-level parallel MultiGet path, which only takes effect when the library is built with USE_COROUTINES.
  • Added rocksdb_block_based_table_index_block_search_type_auto enum constant and the rocksdb_block_based_options_set_uniform_cv_threshold() setter to the C API. The constant exposes BlockSearchType::kAuto, and the setter exposes BlockBasedTableOptions::uniform_cv_threshold. Both are required for kAuto index-block search to take effect from the C API: without setting uniform_cv_threshold >= 0, the per-block is_uniform footer bit is never written, and kAuto falls back to binary search at read time.
  • Added EventListener::OnDBShutdownBegin, a callback that fires once when a DB begins shutdown, including when RocksDB cleans up a failed DB::Open() attempt.
  • Added a new PerfContext counter blob_cache_read_byte for blob cache bytes read.
Behavior Changes
  • Remote compaction now falls back to local compaction when the primary cannot deserialize a successful CompactionServiceResult before installing any remote output files.
  • StringToMap (rocksdb/convenience.h) now preserves the outer braces of nested values so each map entry is in self-contained form and can be embedded directly into another key=value; string (e.g. SetOptions) without losing inner ';' delimiters. A new symmetric MapToString utility is provided.
Bug Fixes
  • Fixed a bug where AbortAllCompactions() could leave automatic compaction work unscheduled when aborting before the background worker picked it, causing compaction and write stalls until DB restart.
  • Fix a bug where db had a false positive compaction corruption error due to remote compaction service result with has_accurate_num_input_records=false not being serialized.
  • Fixed WritePrepared TransactionDB cleanup after retryable commit or rollback write failures so prepared transactions remain rollbackable instead of leaving unresolved prepared state.
  • Fix a rare corruption bug for tiered compaction that incorrectly moved last level range tombstones into proximal level. This corruption error is surfaced when force_consistency_checks is enabled.
Performance Improvements
  • Reduce the likelihood of user-facing metadata operations blocking on MANIFEST rotation when file creation is slow, such as on remote storage. MANIFEST write batches containing foreground edits from CreateColumnFamily(), DropColumnFamily(), CreateColumnFamilyWithImport(), IngestExternalFile(), and DeleteFilesInRanges() now get a relaxed file size threshold for triggering MANIFEST rotation; background-only MANIFEST write batches, such as compaction and flush, continue to use the normal threshold. This change should make auto-tuning manifest file size more attractive (see max_manifest_file_size and max_manifest_space_amp_pct options).
11.3.0 (2026-05-15)
New Features
  • Add experimental DB option async_wal_precreate to precreate the next WAL file in a background thread and reduce foreground WAL rotation latency. The option is sanitized to false when WAL recycling is enabled.
  • Added a new EventListener::OnCompactionPreCommit callback that fires after a compaction job finishes but before its input files are released (i.e. while FileMetaData::being_compacted is still true). Listeners that maintain bookkeeping of which files are currently being compacted can clean up such state in this new callback to avoid races with concurrent compaction picking, where another thread might pick up the same files for a new compaction immediately after being_compacted is flipped back to false but before OnCompactionCompleted fires. The default implementation is a no-op so this is not a breaking change.
  • Add mutable DBOption optimize_manifest_for_recovery (default false). When enabled, RocksDB can reduce recovery work after a clean shutdown, which may lower DB::Open latency on warm reopens.
  • Added public utility APIs ParseCompressionNameForDisplay() to convert TableProperties::compression_name into a human-readable compression name for both legacy and format_version 7+ SST metadata, including custom CompressionManager-provided display names for custom compression types.
  • Add reuse_manifest_on_open DBOption (default false). When enabled, DB::Open reuses the existing MANIFEST file for append instead of creating a fresh one, avoiding the cost of serializing the entire database state into a new MANIFEST on the first post-open write. To prevent this feature from interfering with manifest file size auto-tuning, an extra forward-compatible field is now always added to the MANIFEST (to track the last "compacted" size).
Behavior Changes
  • Read-only open with error_if_wal_file_exists=true now tolerates empty WAL files so empty precreated WALs do not prevent inspection.
  • WriteCommitted TransactionDB now matches WritePrepared and WriteUnprepared compaction filtering in both single- and two-write-queue modes: a compaction filter's FilterMergeOperand will not be invoked on merge operands at or below the latest published sequence number.
Bug Fixes
  • Fixed blob-backed wide-column merge reads to preserve correct status propagation and resolution across memtable, read-only, and secondary DB paths.
  • Fixed a bug where DB::GetCreationTimeOfOldestFile() could return inaccurate results instead of the real creation time when called shortly after opening a legacy DB (one whose manifest lacks file_creation_time) with open_files_async = true. The API now waits for background SST file loading to complete only when needed; modern DBs are unaffected.
  • Fixed merge reads against wide-column/blob-backed base values to preserve precise failure statuses, including GetMergeOperands() and direct-write memtable reads.
  • Fix bug in range tombstone synthesis that covers live keys added during an IngestExternalFile
  • Reject the empty string as a column family name in DB::CreateColumnFamily / DB::CreateColumnFamilies. Previously such calls returned OK and a usable handle, but the column family was not persisted in the manifest, so any data written to it was silently lost on DB reopen.
  • Fixed a bug where a WriteCommitted TransactionDB using commit-bypass WBWI ingestion could drop an entry that is still visible at the published sequence boundary.
11.2.0 (2026-04-18)
New Features
  • Added experimental DBOptions::fast_sst_open option. When enabled, RocksDB retrieves opaque file system metadata for SST files after flush, compaction, and external file ingestion, persists it in the MANIFEST, and passes it back to the file system on subsequent file opens to accelerate DB open time.
  • Added new option min_tombstones_for_range_conversion in AdvancedColumnFamilyOptions. When set to a non-zero value N, forward or reverse iteration will convert N or more contiguous point tombstones into a range tombstone in the mutable memtable. Future read operations will then be able to benefit from range tombstone optimizations. There are some limitations when it comes to table_filters, prefix_filters, and UDTs. See header comments for more details.
  • Added read-triggered compaction: a new column family option read_triggered_compaction_threshold (default 0, disabled) that marks SST files for compaction when their read frequency (num_collapsible_entry_reads_sampled / file_size) exceeds the threshold. This helps reduce read amplification for frequently-read ("hot") keys. A new DB option max_compaction_trigger_wakeup_seconds (default 43200s / 12 hours) controls the maximum interval for periodic compaction score re-evaluation, which is necessary for this feature to work on quiet (no-write) databases.
Public API Changes
  • Added new WideColumnBlobResolver interface and CompactionFilter::FilterV4() method, including ResolveColumn() / ResolveColumns() helpers for lazy loading blob column values in wide-column entities during compaction. This allows compaction filters to resolve blob values on-demand, avoiding unnecessary I/O for blob columns they don't need to access.
  • Changed experimental feature ExternalTableReader::Get and ExternalTableReader::MultiGet to use PinnableSlice instead of std::string for output values, enabling zero-copy pinning. This will break existing implementations.
  • Added SstFileReader::Get and SstFileReader::MultiGet overloads that accept PinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlying TableReader supports pinning.
Behavior Changes
  • Prefix filter changes - when seeking to a key that is out of domain, and total_order_seek is false, total_order_seek is treated as if it were true. When prefix_same_as_start = true, now iterating past a key that is out of domain invalidates the iterator. The existing behavior does not check for InDomain in the DBIter, so Transform() can produce undefined behavior (e.g. key of size 3 on FixedPrefixTransform(4)).
  • Wide-column entities with blob-backed columns now use a new V2 on-disk encoding; older RocksDB versions that do not support wide-column blob separation will reject DBs or SSTs containing those entities.
Bug Fixes
  • Fix blob garbage accounting for blob direct-write flushes so flush-time filtering and overwrite elision correctly register obsolete blob bytes in blob metadata.
  • Fix a memory accounting leak in IODispatcher where ReadIndex() moved block values out of ReadSet without releasing the associated prefetch memory, causing subsequent prefetches to be blocked when max_prefetch_memory_bytes was set.
  • Fix MultiScan to fall back to synchronous coalesced reads when async I/O is unsupported at runtime.

View originalPermalink

v11.1.2RocksDB 11.1.2
11.1.2 (2026-06-24)
Bug Fixes
  • Fixed a bug where closing a read-only DB instance could delete live SST files created by a concurrent read-write DB sharing the same directory.
11.1.1 (2026-04-10)
Public API Changes
  • Changed experimental feature ExternalTableReader::Get and ExternalTableReader::MultiGet to use PinnableSlice instead of std::string for output values, enabling zero-copy pinning. This will break existing implementations.
  • Added SstFileReader::Get and SstFileReader::MultiGet overloads that accept PinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlying TableReader supports pinning.
  • Added block_decompress_count to PerfContext
Bug Fixes
  • Fix a memory accounting leak in IODispatcher where ReadIndex() moved block values out of ReadSet without releasing the associated prefetch memory, causing subsequent prefetches to be blocked when max_prefetch_memory_bytes was set.
11.1.0 (2026-03-23)
New Features
  • Add a new option open_files_async. The existing behavior is on DB open, we open all sst files and do basic validations. For very large DBs on remote filesystems with many ssts, this may take very long. This option performs these validations instead in the background. Open errors found by this async background task are surfaced as a new background error kAsyncFileOpen.
  • Added BlockBasedTableOptions::kAuto index block search type that automatically selects between binary and interpolation search on a per-index-block basis. During SST construction, each index block's key distribution uniformity is analyzed using the coefficient of variation of key gaps, and index blocks with uniform keys use interpolation search while others fall back to binary search. The uniformity threshold is configurable via BlockBasedTableOptions::uniform_cv_threshold (default: 0.2).
  • Introduced enforce_write_buffer_manager_during_recovery option to allow WriteBufferManager to be enforced during WAL recovery. (Default: true)
  • Add memtable_batch_lookup_optimization option to use batch lookup optimization for memtable MultiGet. For skip list memtables, after each key lookup, the search path is cached and reused for the next key, reducing per-key cost from O(log N) to O(log d) where d is the distance between consecutive keys. Benchmarks show ~7% improvement in memtable-resident MultiGet throughput.
  • Added BlockBasedTableOptions::PrepopulateBlockCache::kFlushAndCompaction to prepopulate the block cache during both flush and compaction. Compaction-warmed blocks are inserted at BOTTOM priority (vs LOW for flush) so they are evicted first under cache pressure. Recommended only for use cases where most or all of the database is expected to reside in cache (e.g., tiered or remote storage where the working set fits in cache).
  • Added new mutable DB option verify_manifest_content_on_close (default: false). When enabled, on DB close the MANIFEST file is read back and all records are validated (CRC checksums and logical content). If corruption is detected, a fresh MANIFEST is written from in-memory state.

View originalPermalink

v11.1.1RocksDB 11.1.1
11.1.1 (2026-04-10)
Public API Changes
  • Changed experimental feature ExternalTableReader::Get and ExternalTableReader::MultiGet to use PinnableSlice instead of std::string for output values, enabling zero-copy pinning. This will break existing implementations.
  • Added SstFileReader::Get and SstFileReader::MultiGet overloads that accept PinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlying TableReader supports pinning.
  • Added block_decompress_count to PerfContext
Bug Fixes
  • Fix a memory accounting leak in IODispatcher where ReadIndex() moved block values out of ReadSet without releasing the associated prefetch memory, causing subsequent prefetches to be blocked when max_prefetch_memory_bytes was set.
11.1.0 (2026-03-23)
New Features
  • Add a new option open_files_async. The existing behavior is on DB open, we open all sst files and do basic validations. For very large DBs on remote filesystems with many ssts, this may take very long. This option performs these validations instead in the background. Open errors found by this async background task are surfaced as a new background error kAsyncFileOpen.
  • Added BlockBasedTableOptions::kAuto index block search type that automatically selects between binary and interpolation search on a per-index-block basis. During SST construction, each index block's key distribution uniformity is analyzed using the coefficient of variation of key gaps, and index blocks with uniform keys use interpolation search while others fall back to binary search. The uniformity threshold is configurable via BlockBasedTableOptions::uniform_cv_threshold (default: 0.2).
  • Introduced enforce_write_buffer_manager_during_recovery option to allow WriteBufferManager to be enforced during WAL recovery. (Default: true)
  • Add memtable_batch_lookup_optimization option to use batch lookup optimization for memtable MultiGet. For skip list memtables, after each key lookup, the search path is cached and reused for the next key, reducing per-key cost from O(log N) to O(log d) where d is the distance between consecutive keys. Benchmarks show ~7% improvement in memtable-resident MultiGet throughput.
  • Added BlockBasedTableOptions::PrepopulateBlockCache::kFlushAndCompaction to prepopulate the block cache during both flush and compaction. Compaction-warmed blocks are inserted at BOTTOM priority (vs LOW for flush) so they are evicted first under cache pressure. Recommended only for use cases where most or all of the database is expected to reside in cache (e.g., tiered or remote storage where the working set fits in cache).
  • Added new mutable DB option verify_manifest_content_on_close (default: false). When enabled, on DB close the MANIFEST file is read back and all records are validated (CRC checksums and logical content). If corruption is detected, a fresh MANIFEST is written from in-memory state.
Behavior Changes
  • num_reads_sampled now factors in re-seeks and next/prev() on file iterators for files in L1+. next/prev() is discounted by 64x compared to seek due to being a much cheaper call.
  • Remote compaction workers now skip WAL recovery when opening the secondary DB instance, since only the LSM state from MANIFEST is needed for compaction. This reduces I/O and speeds up remote compaction startup.
Bug Fixes
  • Fix a bug in round-robin compaction that missed selecting input files that are needed to guarantee data correctness and cause crashing in debug builds or silent data corruption in release builds for Get().

View originalPermalink

v11.0.4
11.0.4 (2026-03-11)
Public API Changes
  • Re-remove deprecated DB::Open raw pointer variants in db.h
11.0.3 (2026-03-03)
Public API Changes
  • Relax option sanitization for kv ratio compaction
11.0.2 (2026-02-26)
Public API Changes
  • Revert removing deprecated DB::Open raw pointer variants in db.h
11.0.0 (2026-02-23)
New Features
  • Added support for storing wide-column entity column values in blob files. When min_blob_size is configured, large column values in wide-column entities will be stored in blob files, reducing SST file size and improving read performance.
  • Added CompactionOptionsFIFO::max_data_files_size to support FIFO compaction trimming based on combined SST and blob file sizes. Added CompactionOptionsFIFO::use_kv_ratio_compaction to enable a capacity-derived intra-L0 compaction strategy optimized for BlobDB workloads, producing uniform-sized compacted files for predictable FIFO trimming.
  • Include interpolation search as an alternative to binary search, which typically performs better when keys are uniformly distributed. This is exposed as a new table option index_block_search_type. The default is binary_search.
Public API Changes
  • Added new virtual methods AbortAllCompactions() and ResumeAllCompactions() to the DB class. Added new Status::SubCode::kCompactionAborted to indicate a compaction was aborted. Added Status::IsCompactionAborted() helper method to check if a status represents an aborted compaction.
  • Drop support for reading (and writing) SST files using BlockBasedTableOptions.format_version < 2, which hasn't been the default format for about 10 years. An upgrade path is still possible with full compaction using a RocksDB version >= 4.6.0 and < 11.0.0 and then using the newer version.
  • Remove deprecated raw DB* variants of DB::Open and related functions. Some other minor public APIs were updated as a result
  • Remove deprecated DB::MaxMemCompactionLevel()
  • Remove useless option CompressedSecondaryCacheOptions::compress_format_version
  • Remove deprecated DB option skip_checking_sst_file_sizes_on_db_open. The option was deprecated in 10.5.0 and has been a no-op since then. File size validation is now always performed in parallel during DB open.
  • Remove deprecated SliceTransform::InRange() virtual method and the in_range callback parameter from rocksdb_slicetransform_create() in the C API. InRange() was never called by RocksDB and existed only for backward compatibility.
  • Remove deprecated, unused APIs and options: ReadOptions::managed and ColumnFamilyOptions::snap_refresh_nanos. Corresponding C and Java APIs are also removed.
  • Remove deprecated SstFileWriter::Add() method (use Put() instead) and the deprecated skip_filters parameter from SstFileWriter constructors (use BlockBasedTableOptions::filter_policy set to nullptr to skip filter generation instead).
Behavior Changes
  • Change the default value of CompactionOptionsUniversal::reduce_file_locking from false to true to improve write stall and reduce read regression
Bug Fixes
  • Fix longstanding failures that can arise from reading and/or compacting old DB dirs with range deletions (likely from version < 5.19.0) in many newer versions.
  • Fix a bug where WritePrepared/WriteUnprepared TransactionDB with two_write_queues=true could experience "sequence number going backwards" corruption during recovery from a background error, due to allocated-but-not-published sequence numbers not being synced before creating new WAL files.
Performance Improvements
  • Add a new table option separate_key_value_in_data_block. When set to true keys and values will be stored separately in the data block, which can result in higher cpu cache hit rate and better compression. Works best with data blocks with sufficient restart intervals and large values. Previous versions of RocksDB will reject files written using this option.

View originalPermalink