WAL commit and recovery

WAL commit and recovery A sequence diagram generated by Archify. fsync, rename to sealed_* one transaction: ledger record + offset committed rename to ready_* upload ready_* files only read wal-id fence the previous producer read the ledger to its end files in the table, if needed keep or delete each file Rotate + commit At start Ingestor · one pod · Sequence participant Ingestor one pod Local WAL · pod volume · Sequence participant Local WAL pod volume Kafka · group + ledger · Sequence participant Kafka group + ledger Object storage · your storage · Sequence participant Object storage your storage Iceberg catalog · your catalog · Sequence participant Iceberg catalog your catalog Legend commit step return only at start upload or read

Commit

  • • A file is sealed_* until its transaction commits
  • • The uploader reads ready_* files only

Ledger

  • • Key: cluster, dataset, WAL volume id, partition
  • • Value: the next offset that Kafka delivers

At start

  • • The offset of the consumer group is not used
  • • A file the ledger does not cover is deleted