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.
- 2 remove or deprecate something
76 changes across 6 releases
Added 31
- 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
- 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
- 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
- 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
- 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
- Re-removed deprecated DB::Open raw pointer variants in db.h
Changed 20
- 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
- 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
- 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()
- Experimental ExternalTableReader::Get and ExternalTableReader::MultiGet now use PinnableSlice instead of std::string for output values, enabling zero-copy pinning; this breaks existing implementations
- Changed experimental feature `ExternalTableReader::Get` and `ExternalTableReader::MultiGet` to use `PinnableSlice` instead of `std::string` for output values, enabling zero-copy pinning
Fixed 22
- 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
- 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
- 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
- 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
- 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
- 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()
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 = truegetting stuck afterTryCatchUpWithPrimary()returnedPathNotFoundfor 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 addedand the database stopped.
11.13.1 (10/23/2026)
Bug Fixes
- Fixed data loss with
min_tombstones_for_range_conversionand 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, orallow_db_generated_files), and when an iterator was created during the ingestion. - Fixed a data loss bug where an iterator with
ReadOptions::read_tier = kMemtableTiercould, withmin_tombstones_for_range_conversionenabled, insert a range tombstone that deleted live keys stored only in SST files. Read-path range tombstone conversion now runs only for iterators withread_tier = kReadAllTier.
11.13.0 (10/21/2026)
New Features
- Added
FileSystem::IsPreallocationSupported(). AFileSystemthat 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_manifestrollout 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. OrdinaryDB::Opencontinues to use caller-supplied options and does not depend on the operational snapshot. - Added
EncodeEntry(),PackSequenceAndType(), andUnPackSequenceAndType()inrocksdb/utilities/types_util.hto construct internal keys and pack or unpack their sequence numbers and entry types.kInternalKeyFooterSizeexposes 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 untilDB::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
SstFileManagertrash 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
SstFileManagertrash 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 pastmax_trash_db_ratioand make it immediate instead of rate limited. - Fixed
MultiGetwithReadOptions::async_ioreturningNotSupportedwhen 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
LoadLatestOptionsfrom 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_contexton every update. WithkEnableCount, a counter update costs about 60% less.
v11.12
New Features
- Added
FullExternalTableFactoryand 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
ExternalTableReaderimplementations. Coroutine-capable external readers can initiate file reads throughFSRandomAccessFile::SubmitReadAsync(). ExternalTableFactory::NewTableReader()now receives an already-openedFSRandomAccessFileand its file size instead of requiring implementations to reopenfile_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(), andIsDeleteRangeSupported()to the external table interfaces so formats can opt in to range deletions using RocksDB's raw range-deletion metadata block. - Opaque
PreparedFileInfometadata can now be serialized to a checksummed representation withSerializePreparedFileInfo()and restored withDeserializePreparedFileInfo()for reuse across processes. - Removed the deprecated
IngestExternalFileOptions::write_global_seqnooption and its C, Java, andldbAPIs,TableProperties::external_sst_file_global_seqno_offset, and thefile_offsetoutput fromExternalTableReader::GetPropertiesBlock(). Existing external SST files whose global sequence number was rewritten without updating the properties-block checksum remain readable. TablePropertiesNameshas no apparent use in the public API so has been deprecated there.TableProperties::creation_timeis renamed tooldest_ancestor_time, which better describes its meaning, along withTablePropertiesNames::kCreationTimetokOldestAncestorTime. The misspelledSstFileMetaData::oldest_ancester_timeis renamed tooldest_ancestor_time. The old names remain available as deprecated aliases and will be removed in a future release.- Added
WriteBufferFlushPolicyandWriteBufferManagerpolicy 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()returnsNotSupported, RocksDB now overridesnum_entries,raw_key_size, andraw_value_sizefromExternalTableBuilderBase::GetTableProperties()with the logical totals tracked by the external-table adapter. Format-specific properties such asdata_sizeremain unchanged. - The
FSWritableFilepassed toExternalTableFactory::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 returnsNotSupportedon iterators from a secondary DB'sDB::NewIterators()only, because those iterators are pinned to one cross-column-family read view. Iterators fromDB::NewIterator()are unaffected; to advance a batch, callDB::NewIterators()again afterTryCatchUpWithPrimary().SstFileReadernow 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 equalsbegin_key, which lost keys at the start of the kept range. - Fixed swapped
oldest_key_timeandnewest_key_timevalues in thetable_file_creationevent 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()withReadOptions::read_tier == kBlockCacheTierreading data blocks from disk whenallow_mmap_readsis false. Keys whose data block is not in the block cache now returnStatus::Incomplete(), the same asGet(). - Fixed trace replay (
DB::NewDefaultReplayer(), db_benchreplay) failing every read record (Get, MultiGet, iterator seek) on the default column family withCorruption: Invalid Column Family IDwhen 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, includingStatus::NotSupported()from executing a record, as single-threaded replay does. - Fixed secondary DB
NewIterators()returning iterators from different database states or blocking forTryCatchUpWithPrimary()by serving the last completed catch-up view.
Performance Improvements
- Single Get coroutine reads using non-mmap, non-direct I/O on a
kFSBuffer-capableFileSystemnow useFSRandomAccessFile::SubmitReadAsync()instead of falling back to synchronousRead(). 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.
v11.8.1RocksDB 11.8.1
11.8.1 (2026-07-28)
Public API Changes
- Add
DBOptions::read_io_executor_threadsto 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 experimentalFSRandomAccessFile::SubmitReadAsync()API to return whether the asynchronous path was used, and add theFILE_SUBMIT_ASYNC_READ_FALLBACKticker to count calls that fall back to synchronous reads.
Performance Improvements
- When
DBOptions::avoid_unnecessary_blocking_iois true, obsoleteOPTIONS-*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()andDB::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 APIFSRandomAccessFile::SubmitReadAsync()is introduced for this. UnlikeReadAsync, 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(defaultfalse). When set together withFlushOptions::wait == true,DB::Flush()will not return until the registeredEventListener::OnFlushCompletedcallbacks 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) theOnFlushCompletedcallbacks execute on the background flush thread. Also added the corresponding C APIrocksdb_flushoptions_set_listener_wait()/rocksdb_flushoptions_get_listener_wait(). - Deprecated
PinnableWideColumns::serialized_size()in favor of the newPinnableWideColumns::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 forGetEntity/MultiGetEntity) and theReadOptions::value_size_soft_limitthreshold 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_limitnow also bounds the blob values resolved from pre-flush blob direct write references duringMultiGet/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 getStatus::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 toPinnableWideColumnsthat lets its columns reference multiple backing buffers.
11.7.0 (2026-07-16)
Public API Changes
- Added
RangeLockManagerHandle::SetIsKilledCallback(), astd::function<bool()>predicate polled during range-lock waits. When it returns true, a blockedGetRangeLock()wait returns promptly withStatus::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::reverseto 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 untilUnlockWAL()or returnAbortedwhen called from the same thread that holdsLockWAL()to avoid deadlock.UnlockWAL()must now also be called from the same thread that calledLockWAL().
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 newrocksdb_*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.hremains 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::ReadAsyncwhere an already-aligned direct-IO read request with a nullscratchand a caller-providedaligned_bufwould 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 synchronousReadpath. - 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::fsnow 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 ofIngestExternalFile/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 opaqueFileIngestionHandle.DB::CommitFileIngestionHandle()(orDB::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 onIngestExternalFile. - Added two stats histograms reporting the per-call latency (in microseconds) of each successful
IngestExternalFile/IngestExternalFilescall, split by phase:rocksdb.ingest.external.file.prepare.micros(argument validation and reading/validating/linking the external files, which does not block live writes) androcksdb.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 useO_DIRECTwhile user reads remain buffered, avoiding page-cache eviction of hot user-read data by sequential compaction scans. Pair withuse_direct_io_for_flush_and_compaction = trueon write-heavy workloads for direct I/O on both compaction inputs and outputs. Rejected at Open when combined withallow_mmap_reads = true. No-op whenuse_direct_reads = trueis 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 toIngestExternalFileArg::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.ExternalSstFileInfogained aprepared_file_infomember produced bySstFileWriter::Finish, andIngestExternalFileArggained afile_infosfield: a vector of borrowedconst PreparedFileInfo*pointers, parallel toexternal_files. The owningExternalSstFileInfo::prepared_file_infohandle 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_seektomemtable_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()andEnv::SyncFile()public APIs for syncing or fsyncing a file by name without requiring callers to reopen it as writable.
Behavior Changes
- The default
compressionfor column families is nowkLZ4Compressionrather thankSnappyCompression. This affects only column families that do not explicitly setcompression, 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::OptimizeForCompactionTableReadnow delegates to the baseFileSystem::OptimizeForCompactionTableReadimplementation before applying its Linux-only compaction-readahead clamp (added for #12038). The returnedFileOptions::use_direct_readstherefore reflectsDBOptions::use_direct_reads, consistent with the base class and with otherFileSystemimplementations. Previously the override ignored the base implementation and keyed both the returned options and the Linux readahead clamp off the incomingFileOptionsrather thanDBOptions. At the in-tree call site the incomingFileOptions::use_direct_readsalready matchesDBOptions::use_direct_reads, so this is effectively a no-op for existing configurations; it removes a latent inconsistency where a caller passingFileOptionswhoseuse_direct_readsdisagreed withDBOptionswould have had the global flag silently ignored for compaction-input reads on Linux. (Note: the#12038readahead clamp still keys off the globaluse_direct_reads; it is not skipped for the compaction-onlyuse_direct_io_for_compaction_readspath, since that flag enables O_DIRECT after this hook runs.)- Brought more unity to
kLZ4CompressionandkLZ4HCCompressionby 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-defaultcompression_opts.levelnow selects the LZ4 compressor variant. This is a behavior change for previously tolerated but dubious configurations such as positive compression level withkLZ4Compression.kLZ4CompressionandkLZ4HCCompressionkeep their effective default levels, equivalent to -1 and 9 respectively. - Removed a discontinuity in
kZSTDcompression levels atcompression_opts.level == 0by mapping that setting tolevel = -1rather than tolevel = 3as 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_threadsto 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()androcksdb_options_get_memtable_batch_lookup_optimization()to the C API, exposing the existingAdvancedColumnFamilyOptions::memtable_batch_lookup_optimizationfield. This allows C API users (and downstream language bindings) to enable the skip-list memtable's batch-lookup optimization forMultiGet, 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()androcksdb_readoptions_get_optimize_multiget_for_io()to the C API, exposing the existingReadOptions::optimize_multiget_for_iofield. 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 withUSE_COROUTINES. - Added
rocksdb_block_based_table_index_block_search_type_autoenum constant and therocksdb_block_based_options_set_uniform_cv_threshold()setter to the C API. The constant exposesBlockSearchType::kAuto, and the setter exposesBlockBasedTableOptions::uniform_cv_threshold. Both are required forkAutoindex-block search to take effect from the C API: without settinguniform_cv_threshold >= 0, the per-blockis_uniformfooter bit is never written, andkAutofalls 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 failedDB::Open()attempt. - Added a new PerfContext counter
blob_cache_read_bytefor blob cache bytes read.
Behavior Changes
- Remote compaction now falls back to local compaction when the primary cannot deserialize a successful
CompactionServiceResultbefore 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=falsenot 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(), andDeleteFilesInRanges()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 (seemax_manifest_file_sizeandmax_manifest_space_amp_pctoptions).
11.3.0 (2026-05-15)
New Features
- Add experimental DB option
async_wal_precreateto 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::OnCompactionPreCommitcallback that fires after a compaction job finishes but before its input files are released (i.e. whileFileMetaData::being_compactedis 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 afterbeing_compactedis flipped back to false but beforeOnCompactionCompletedfires. 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 convertTableProperties::compression_nameinto a human-readable compression name for both legacy and format_version 7+ SST metadata, including customCompressionManager-provided display names for custom compression types. - Add
reuse_manifest_on_openDBOption (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=truenow 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 lacksfile_creation_time) withopen_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_openoption. 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_conversioninAdvancedColumnFamilyOptions. 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 optionmax_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
WideColumnBlobResolverinterface andCompactionFilter::FilterV4()method, includingResolveColumn()/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::GetandExternalTableReader::MultiGetto usePinnableSliceinstead ofstd::stringfor output values, enabling zero-copy pinning. This will break existing implementations. - Added
SstFileReader::GetandSstFileReader::MultiGetoverloads that acceptPinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlyingTableReadersupports 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.
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::GetandExternalTableReader::MultiGetto usePinnableSliceinstead ofstd::stringfor output values, enabling zero-copy pinning. This will break existing implementations. - Added
SstFileReader::GetandSstFileReader::MultiGetoverloads that acceptPinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlyingTableReadersupports 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::kAutoindex 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 viaBlockBasedTableOptions::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_optimizationoption 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::kFlushAndCompactionto prepopulate the block cache during both flush and compaction. Compaction-warmed blocks are inserted atBOTTOMpriority (vsLOWfor 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.
v11.1.1RocksDB 11.1.1
11.1.1 (2026-04-10)
Public API Changes
- Changed experimental feature
ExternalTableReader::GetandExternalTableReader::MultiGetto usePinnableSliceinstead ofstd::stringfor output values, enabling zero-copy pinning. This will break existing implementations. - Added
SstFileReader::GetandSstFileReader::MultiGetoverloads that acceptPinnableSlice/std::vector<PinnableSlice>*, enabling zero-copy reads when the underlyingTableReadersupports 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::kAutoindex 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 viaBlockBasedTableOptions::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_optimizationoption 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::kFlushAndCompactionto prepopulate the block cache during both flush and compaction. Compaction-warmed blocks are inserted atBOTTOMpriority (vsLOWfor 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().
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_sizeis 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_sizeto support FIFO compaction trimming based on combined SST and blob file sizes. AddedCompactionOptionsFIFO::use_kv_ratio_compactionto 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 isbinary_search.
Public API Changes
- Added new virtual methods
AbortAllCompactions()andResumeAllCompactions()to theDBclass. Added newStatus::SubCode::kCompactionAbortedto indicate a compaction was aborted. AddedStatus::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 ofDB::Openand 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 thein_rangecallback parameter fromrocksdb_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::managedandColumnFamilyOptions::snap_refresh_nanos. Corresponding C and Java APIs are also removed. - Remove deprecated
SstFileWriter::Add()method (usePut()instead) and the deprecatedskip_filtersparameter fromSstFileWriterconstructors (useBlockBasedTableOptions::filter_policyset tonullptrto skip filter generation instead).
Behavior Changes
- Change the default value of
CompactionOptionsUniversal::reduce_file_lockingfromfalsetotrueto 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.