#9197·greptimedb

Tracking: object store WAL

Author: fengjiachunCreated Sep 16, 2026Updated Sep 23, 2026
LabelsC-feature

What problem does the new feature solve?

GreptimeDB already keeps its data files in object storage; the WAL is the last component that still needs either a local disk with durability guarantees (Raft Engine) or an external cluster (Kafka). For a cloud-native standalone deployment both are awkward: Raft Engine ties the node to a persistent volume, and Kafka is an operational dependency of its own that is disproportionate for a single node. An object store WAL needs nothing but the bucket and a prefix, so unflushed writes are no longer tied to a volume and a node restarted against the same prefix replays them.

What does the feature do?

A WAL provider backed by an object store, alongside Raft Engine and Kafka. A datanode batches the entries of all its regions into immutable objects under one prefix, creates each object conditionally under a monotonically increasing sequence number, and by default acknowledges a write only after the object holding it is durable; an opt-in enqueued mode returns on admission with a stated loss bound. Recovery rebuilds an in-memory catalog from object footers and replays each region from its own segments. The provider is standalone-only and experimental for now. The design is in #9195.

This issue tracks the pull requests that submit the reference implementation, in the order the RFC's Details sections give, and the follow-ups the RFC leaves open.

Each pull request is self-contained: it compiles, its tests pass, and the tree it leaves behind is usable. Every one builds on the previous one unless noted.

Design

  • RFC: #9195

Implementation

  • Identity and configuration: Provider::ObjectStore, ObjectStoreWalConfig / ObjectStoreWalOptions, option validation, metadata handling of the new provider, the Mito provider mapping, example configuration. The datanode rejects the provider as not yet supported until the store lands. Independent of the format PR below: #9203.
  • Object format: header, segments, footer, trailer; encoding, decoding, structural checks and CRCs. Independent of the identity PR above: #9200.
  • Batch, catalog and I/O: the open batch and position assignment, the in-memory catalog with its invariants and next-sequence rule, conditional create, reads and listing: #9216.
  • Store construction and recovery: footer-only concurrent recovery, sequence resumption, actor start and exit. The store opens an existing prefix but does not write yet: #9238.
  • Reads and obsolete: region-scoped read streams, watermarks, obsolete_all, latest_entry_id: #9248.
  • Predecessor chain and instance epoch in the object header, chain-based recovery and the epoch-start object written on open, so that an append reported as failed is never replayed once a later append was acknowledged: #9334. Precedes the write path.
  • durable write path: admission, sealing by size and interval, the pipelined uploader with in-order acknowledgement, rollback and history-gap poisoning, stop, the sequence floor of obsolete: #9320.
  • enqueued acknowledgement mode and the durability barrier: ack_mode, backlog thresholds, in-store retry of transient failures, LogStore::wait_durable with Mito waiting before a flush, truncate or discard publishes a manifest watermark.
  • Datanode and standalone wiring, Mito engine tests: store construction from configuration, node prefix derivation, shutdown order. Standalone runs on the object store WAL after this one.
  • Cross-region and cross-restart recovery tests, integration tests.
  • Segment-level corruption skipping: on_corrupted_segment = skip | fail, WAL holes recorded per region.
  • Garbage collection rules: the deletable-object rule on the catalog, the resumable cursor and scan bound, sequence-floor maintenance. No object is deleted yet.
  • Garbage collection execution: background deletes with a concurrency bound, retry, the read-side handling of an object under deletion, settlement at actor exit, delete counters.
  • Metrics and fault matrix, part 1: the store's metrics; the fault matrix harness and the conditional-create rows.
  • Fault matrix, part 2: recovery, read and delete failures, stalled appends released by stop or actor exit, timing assertions.

Follow-ups from the RFC

  • Reconcile the sequence number after a transient create failure whose immediate read-back also failed, before the sequence is reused.
  • Probe the next sequence with a GET instead of listing the whole prefix at recovery.
  • Cost and throughput comparison against Raft Engine on a cloud object store.
  • A compatibility fixture that pins object format version 1.
  • Distributed mode: metasrv-side allocation of node ids and generations, the takeover chain in WalOptions, read-only replay of a foreign prefix, cross-node garbage collection.