RocksDB 11.13.22026-11-04
11.13.2 (10/28/2026)
Bug Fixes
Fixed a secondary instance with openfiles_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 mintombstonesforrangeconversion 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, ingestbehind, or allowdbgenerated_files), and when an iterator was created during the ingestion.
Fixed a data loss bug where an iterator with ReadOptions::readtier = kMemtableTier could, with mintombstonesforrangeconversion 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::trackoptionsfilenumberinmanifest
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/typesutil.h to construct internal keys and pack or unpack their sequence numbers and entry types. kInternalKeyFooterSize exposes the footer size in bytes.
Added ldb updatemanifest --rebindoptionsfile --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 maxbgerrorresumecount <= 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 maxtrashdbratio and make it immediate instead of rate limited.
Fixed MultiGet with ReadOptions::asyncio 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 perfcontext on every update. With kEnableCount, a counter update costs about 60% less.
v11.122026-10-27
外部表(External Table)是本版主角:新增 FullExternalTableFactory 全模式接口,保留 RocksDB 内部键,使外部表也能支持非零序列号、各类删除与 Merge 操作、blob 索引、宽列实体、快照、在线写入和多层 compaction。NewTableReader() 改为直接接收已打开的文件对象,不再按路径自行重开,因而继承了直连 I/O 对齐、限速、统计与预取能力;另新增协程式读取接口和 Range Delete 支持开关。写入侧引入 WriteBufferFlushPolicy,可按最老或最大的列族触发刷写,共享 WriteBufferManager 的多个 DB 还支持批量刷写最大列族。接口清理方面,creationtime 更名为 oldestancestortime,过时的 writeglobal_seqno 被移除。行为上,二级库批量迭代器的 Iterator::Refresh() 改为返回 NotSupported。修复包括多列族 WAL 回放边界未原子推进造成的部分恢复,以及 s390x 等大端架构构建失败、ClipColumnFamily() 误删非 L0 SST 等问题。
RocksDB 11.8.12026-08-08
Public API Changes
Add DBOptions::readioexecutorthreads 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 FILESUBMITASYNCREADFALLBACK ticker to count calls that fall back to synchronous reads.
Performance Improvements
When DBOptions::avoidunnecessaryblockingio 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::listenerwait (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 rocksdbflushoptionssetlistenerwait() / rocksdbflushoptionsgetlistenerwait().
Deprecated PinnableWideColumns::serializedsize() in favor of the new PinnableWideColumns::payloadsize(), 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 (BYTESREAD, BYTESPERREAD, and the per-key byte counts for GetEntity/MultiGetEntity) and the ReadOptions::valuesizesoft_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::valuesizesoftlimit 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 bestefforts_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/capigen/) 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 rangelock_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 alignedbuf 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 p
RocksDB 11.1.22026-06-25
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 blockdecompress_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 maxprefetchmemorybytes was set.
11.1.0 (2026-03-23)
New Features
Add a new option openfiles_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::uniformcv_threshold (default: 0.2).
Introduced enforcewritebuffermanagerduringrecovery option to allow WriteBufferManager to be enforced during WAL recovery. (Default: true)
Add memtablebatchlookupoptimization 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 verifymanifestcontenton_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.
RocksDB 11.1.12026-04-30
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 blockdecompress_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 maxprefetchmemorybytes was set.
11.1.0 (2026-03-23)
New Features
Add a new option openfiles_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::uniformcv_threshold (default: 0.2).
Introduced enforcewritebuffermanagerduringrecovery option to allow WriteBufferManager to be enforced during WAL recovery. (Default: true)
Add memtablebatchlookupoptimization 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 verifymanifestcontenton_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
numreads_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.42026-04-08
11.0.0 是一次大版本更新。宽列实体的大型列值可随 minblobsize 写入 blob 文件,SST 体积更小、读取更快;FIFO 压缩新增 maxdatafilessize(按 SST 与 blob 文件总大小裁剪)和 usekvratiocompaction(面向 BlobDB,生成大小均匀的压缩文件);表索引新增插值搜索 indexblocksearchtype,键分布均匀时表现优于二分查找。DB 类新增 AbortAllCompactions()、ResumeAllCompactions() 及 kCompactionAborted 状态。不再支持 formatversion < 2 的 SST,旧库需先用 4.6.0~11.0.0 之间的版本全量压缩再升级;一批废弃接口与选项同时移除,reducefilelocking 默认值改为 true。修复了旧库 range deletion 读取压缩失败、WritePrepared 事务后台错误恢复时序列号回退的问题;新增 separatekeyvalueindata_block,键值分离存储可提升缓存命中率与压缩率,但旧版本无法读取此类文件。
后续补丁中,11.0.2 回退了 DB::Open 裸指针重载的移除,11.0.3 放宽 kv ratio 压缩的选项校验,11.0.4 又重新移除该重载。
v10.10.12026-02-03
10.10.1 为纯修复版本:修复了最佳努力恢复(best-efforts recovery)中的一处问题——恢复期间缓存的 SST 文件在被访问时会触发 use-after-free 崩溃;同时修正了可恢复压缩(resumable compaction)的判断缺陷,此前它会错误地允许从截断的范围删除(range deletion)处继续压缩,而该场景目前并无完善处理。另外解决了一个 I/O 相关问题:PosixRandomFileAccess 的 io_uring 提交队列在与 ReadAsync 同线程交错调用 MultiRead 时会误报 "Bad cqe data" 错误,本次修复了队列归属与管理上的 bug。Windows 下 VS 2022 的编译错误也一并处理。
v8.11.52026-01-22
8.11.5 行为变更:回迁了 RocksDB 9.1 引入的两个新值类型 kTypeValuePreferredSeqno 和 kTypeColumnFamilyValuePreferredSeqno,解决向前兼容问题——此前无法读取由 RocksDB 9.1 及以上版本写入、MANIFEST 条目中包含 kTypeMaxValid 的数据库。升级后即可正常打开这类数据。
v10.9.12026-01-06
Bug Fixes
* Fix resumable compaction incorrectly allowing resumption from a truncated range deletion that is not well handled currently.
10.9.0 (2025-11-21)
New Features
Added an auto-tuning feature for DB manifest file size that also (by default) improves the safety of existing configurations in case maxmanifestfilesize is repeatedly exceeded. The new recommendation is to set maxmanifestfilesize to something small like 1MB and tune maxmanifestspaceamp_pct as needed to balance write amp and space amp in the manifest. Refer to comments on those options in DBOptions for details. Both options are (now) mutable.
* Added a new API to support option migration for multiple column families
Added new option targetfilesizeisupperbound that makes most compaction output SST files come close to the target file size without exceeding it, rather than commonly exceeding it by some fraction (current behavior). For now the new behavior is off by default, but we expect to enable it by default in the future.
Add a new option allowtrivialmove in CompactionOptions to allow CompactFiles to perform trivial move if possible. By default the flag of allowtrivial_move is false, so it preserve the original behavior.
Public API Changes
To reduce risk of ODR violations or similar, ROCKSDBUSINGTHREADSTATUS has been removed from public headers and replaced with static const bool ThreadStatus::kEnabled. Some other uses of conditional compilation have been removed from public API headers to reduce risk of ODR violations or other issues.
Behavior Changes
* PosixWritableFile now repositions the seek pointer to the new end of file after a call to Truncate.
* Updated standalone range deletion L0 file compaction behavior to avoid compacting with any newer L0 files (which is expensive and not useful).
Bug Fixes
* Fix a bug where compaction with range deletion can persist kTypeMaxValid in MANIFEST as file metadata. kTypeMaxValid is not supposed to be persisted and can change as new value types are introduced. This can cause a forward compatibility issue where older versions of RocksDB don't recognize kTypeMaxValid from newer versions. A new placeholder value type kTypeTruncatedRangeDeletionSentinel is also introduced to replace kTypeMaxValid when reading existing SST files' metadata from MANIFEST. This allows us to strengthen some checks to avoid using kTypeMaxValid in the future.
* Fixed a bug where DB::GetSortedWalFiles() could hang when waiting for a purge operation that found nothing to do (potentially triggered by iterator release, flush, compaction, etc.).
Fixed a bug in MultiScan where maxsequentialskipin_iterations could cause the iterator to seek backward to already-unpinned blocks when the same user key spans multiple data blocks, leading to assertion failures or seg fault.
Fixed a bug for WALttl_seconds > 0 use cases where the newest archived WAL files could be incorrectly deleted when the system clock moved backwards.
Performance Improvements
* Added optimization that allowed for the asynchronous prefetching of all data outlined in a multiscan iterator. This optimization was applied to the level iterator, which prefetches all data through each of the block-based iterators.
v10.8.32026-01-06
New Features
* Add a GetColumnFamilyMetaData API variant in DB to get the SST files intersecting a given key range.
10.8.2 (2025-11-07)
New Features
Added an auto-tuning feature for DB manifest file size that also (by default) improves the safety of existing configurations in case maxmanifestfilesize is repeatedly exceeded. The new recommendation is to set maxmanifestfilesize to something small like 1MB and tune maxmanifestspaceamp_pct as needed to balance write amp and space amp in the manifest. Refer to comments on those options in DBOptions for details. Both options are (now) mutable.
Add a new option allowtrivialmove in CompactionOptions to allow CompactFiles to perform trivial move if possible. By default the flag of allowtrivial_move is false, so it preserve the original behavior.
10.8.1 (2025-10-29)
Behavior Changes
* PosixWritableFile now repositions the seek pointer to the new end of file after a call to Truncate.
10.8.0 (2025-10-21)
New Features
* Add kFSPrefetch to FSSupportedOps enum to allow file systems to indicate prefetch support capability, avoiding unnecessary prefetch system calls on file systems that don't support them.
Added experimental support OpenAndCompactOptions::allowresumption for resumable compaction that persists progress during OpenAndCompact(), allowing interrupted compactions to resume from the last progress persitence. The default behavior is to not persist progress.
Public API Changes
* Allow specifying output temperature in CompactionOptions
Added DB::FlushWAL(const FlushWALOptions&) as an alternative to DB::FlushWAL(bool sync), where FlushWALOptions includes a new ratelimiterpriority field (default Env::IOTOTAL) that allows rate limiting and priority passing of manual WAL flush's IO operations.
* The MultiScan API contract is updated. After a multi scan range got prepared with Prepare API call, the following seeks must seek the start of each prepared scan range in order. In addition, when limit is set, upper bound must be set to the same value of limit before each seek
Behavior Changes
kChangeTemperature FIFO compaction will now honor compactiontargettemp to all levels regardless of cfoptions::lastleveltemperature
* Allow UDIs with a non BytewiseComparator
Bug Fixes
* Fix incorrect MultiScan seek error status due to bugs in handling range limit falling between adjacent SST files key range.
* Fix a bug in Page unpinning in MultiScan
Performance Improvements
* Fixed a performance regression in LZ4 compression that started in version 10.6.0