Writes
An append is durable when the record is in the write-ahead log, which lives in object storage. There is no node-local disk in the write path, so a node that dies loses nothing that was acknowledged. The cost of that guarantee is one round trip to the WAL, and the write path is shaped around paying it once for many records instead of once per record.
The append path
An append arrives at the partition's owning node, as an HTTP POST or a Kafka Produce. The node checks the producer's epoch and sequence against the partition's log entry, assigns the next offsets, and submits the record to the storage engine. Submission happens under a per-stream lock so the order of offsets is fixed, but the caller waits for durability outside the lock. Requests pipelined on the same stream stack up in the WAL and share the same flush.
Inside the engine the record goes to two places. It enters the log cache, which serves tail reads, and it enters the WAL, which makes it durable.
The WAL
Incoming records accumulate into a bulk, and each bulk becomes one PUT to the object store. Writes are pipelined, so several bulks can be in flight, but acknowledgements are delivered in submission order. A record is acknowledged only when its bulk and every bulk before it are stored.
Group commit is what makes this affordable. One write of a few hundred kilobytes contains every record that arrived while the previous write was in flight, so per-record cost drops as concurrency rises. A single append on an idle stream pays one round trip, tens of milliseconds on S3, single digits on S3 Express.
Records are framed with a checksum, and the WAL is fenced by a reservation object, so a node whose WAL was taken over cannot acknowledge another write. Fencing, the layout, and what it survives are on the Write-ahead log page.
If a WAL write fails, the append fails and the node releases the stream and drops its cached producer state. The retry reopens the stream at the next epoch and reloads the producers from what was persisted, so a failed append is never half applied.
From WAL to committed objects
The WAL is a staging area, not the long-term layout. A background upload task drains sealed log cache blocks into read-optimized objects and commits them through the metadata log.
A block holding records from many streams becomes a stream-set object, with large per-stream runs split out into their own stream objects. Object ids are reserved through the metadata log before the upload, so a crashed upload leaves only an unreferenced id that expires. The commit itself is a single command that registers the objects, advances the end offset of every stream involved, and does so atomically. Readers either see none of the commit or all of it.
Once the commit is applied, the WAL objects it covers hold no unique data and are deleted. The WAL stays short, which bounds recovery time.
Recovery
A restarting node recovers its own WAL, and the lease holder recovers a dead node's WAL during failover. Either way the records past the last committed offset are replayed and uploaded before the streams move on. Acknowledged records are recovered because acknowledgement required the WAL write to complete. Records that were in flight but never acknowledged may be absent, which is the standard contract: an append without an acknowledgement was never promised. Details per backend are in Write-ahead log.