Skip to content

Retention ​

Snapshots expire after snapshot_retention. The writer deletes the objects and rows only expired snapshots used. Kafka's retention decides how far back a table reaches.

Snapshot expiry ​

A snapshot expires whenSettingDefault
It is older thansnapshot_retention24h
Kafka's retention deleted records it coversKafka's retention.ms, retention.bytes

The latest snapshot never expires. Snapshots expire oldest first, as part of a commit.

Collection ​

Every collection_interval, 10 minutes by default, the writer deletes:

ObjectDeleted once
Metadata objects only expired snapshots usedUnreferenced for collection_grace, 1 hour by default
Objects of a commit that failedOlder than collection_grace
Objects of load tailsOlder than collection_grace
Postgres rows of expired snapshots and of files no snapshot listsWith the snapshot

Queries that started on a snapshot just before it expired finish reading within the grace period. A collection that stops part way finishes on the next run.

Kafka retention ​

Kafka deletesMink
Records at the start of a partitionMoves the indexed range's start to the next file boundary. At most one file per partition leaves the table early.
Records a snapshot coversExpires that snapshot
The whole topicMarks the table missing

Mink never deletes anything from Kafka.