rocksdb · shipping · also RocksDB storage engine

RocksDB

RocksDB is an embedded key-value storage engine that organizes persistent data using a log-structured merge-tree.

Related Observatory article: Read on hesela.com

Scope: Applications use RocksDB as a library; the engine is not itself a standalone database server. Its LSM design trades read, write and space amplification rather than guaranteeing one performance profile. [1]

Durability: With WAL enabled and automatic WAL flushing, a non-sync write may remain in operating-system memory. manual_wal_flush=true can instead retain log data in RocksDB's own buffer; disableWAL=true omits that log record. A successful write therefore needs its logging, buffering and synchronization policy to be interpreted. [2]

Boundary: In v10.10.1, sync=true together with disableWAL=true is rejected with InvalidArgument. A later WAL-enabled synchronous write does not supply an earlier unlogged update that is still only in a memtable; an independent memtable flush may persist it. These are source-reviewed contracts, not a power-loss experiment or a claim about the latest release. [3] [4]

BlobDB exception: the experimental Blob Direct Write v1 option in v11.8.1 replaces qualifying values with BlobIndex references before WAL/memtable insertion. Its documented recovery scope excludes still-active direct-write blob files: they must first become manifest-visible through flush/SST creation. Do not extend the ordinary value-in-WAL argument above to this opt-in mode. [6]

Relations

related
Log-structured merge-tree, Memtable, Sorted string table, Write-ahead log, LSM compaction, ZenFS, RocksDB column family, RocksDB atomic flush, RocksDB checkpoint, RocksDB BackupEngine, BlueStore, BlueFS, BlobDB (RocksDB)

Citations

  1. RocksDB v10.10.1 README: library identity and LSM design. (accessed 2026-11-29)
  2. RocksDB v10.10.1 options.h: manual_wal_flush and WriteOptions. (accessed 2026-11-29)
  3. RocksDB v10.10.1 DBImpl::WriteImpl: incompatible sync/disableWAL options. (accessed 2026-11-29)
  4. RocksDB FAQ: a synchronous write after a WAL-disabled update. (accessed 2026-11-29)
  5. RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract. (accessed 2026-12-02)

Further reading

  1. Hesela: RocksDB WAL sync, memtable flush and recovery boundaries. (accessed 2026-11-29)

JSON: /data/terms/rocksdb.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. RocksDB. Hesela. 2026-12-02. https://hesela.dev/terms/rocksdb/