Scenario 06.1.4 · Diskless: object storage goes down
Diskless Kafka (KIP-1163): when object storage goes down
diskless.enable (KIP-1163 draft) · stop the bucket: the WAL upload fails, the diskless producer gets a retriable error and retries, and a classic topic in the same cluster keeps being acked.
Run this scenario in the playgroundBoth topics flowing. t+2.050s
orders is a classic topic: order-1 was replicated from broker-1 to the other two brokers and acked at 450 ms. clicks is diskless (KIP-1163 draft): broker-1 buffered click-1, uploaded it as the WAL object wal-0001, the coordinator on broker-3 committed it and p-clicks was acked at 1450 ms. c1 in az-b read click-1 at 1500 ms and committed its offset at 2000 ms.
Open at this step: step 1, Both topics flowingObject storage stops; orders is still acked. t+3.100s
The bucket stopped at 2500 ms. order-2 was acked at 3050 ms, 300 ms after it was sent, as before: a classic topic replicates between brokers and never touches object storage. click-2 sits in broker-1's WAL buffer as wal-0002, and its upload started at 3250 ms. The draft says nothing about back-pressure, so here the broker keeps buffering (simulator choice).
Open at this step: step 2, Object storage stops; orders is still ackedThe upload fails: KAFKA_STORAGE_ERROR. t+4.100s
wal-0002's upload failed: no object was written, the coordinator committed nothing and click-2 got no offset. At 4050 ms p-clicks got KAFKA_STORAGE_ERROR. The draft says only that the pending produce requests receive errors and that produce fails retriably; the error code is the simulator's choice. It is retriable, so p-clicks sends click-2 again after its 500 ms backoff.
Open at this step: step 3, The upload fails: KAFKA_STORAGE_ERRORThe retry fails too. t+5.900s
The retry went into wal-0003 at 4550 ms; its upload started at 5050 ms and failed at 5850 ms with the same error, so p-clicks backs off and tries again. Object storage still holds only wal-0001, and the high watermark of clicks is still 1. c1 kept polling and found nothing new; with nothing past its offset, its fetch never needed object storage, so it got no error.
Open at this step: step 4, The retry fails tooStorage is back: the retry is acked. t+8.550s
The bucket started again at 6000 ms. The next retry went into wal-0004 at 6350 ms, was uploaded, and the coordinator committed it at 7650 ms: click-2 got offset 1 and p-clicks was acked. c1 read it at 8000 ms and committed at 8500 ms. Nothing was lost, and nothing was written twice: a failed upload leaves no object behind.
Open at this step: step 5, Storage is back: the retry is ackedWhat you start with
In the KIP-1163 draft a diskless topic has no data on broker disks: a broker buffers records, uploads them as a WAL object and only then asks the diskless coordinator to commit it. So what happens when object storage stops? The draft says the pending produce requests get errors and, in the KIP-1165 test plan, that produce fails retriably; it names no error code. A classic topic, orders, and a diskless topic, clicks, take writes side by side. The bucket stops while a clicks record waits in the WAL buffer and starts again 3.5 s later. p-clicks is set to retries=10 and retry.backoff.ms=500. Watch the object storage lane, the WAL counter under broker-1 and both producers.
Step by step
- Both topics flowing t+2.050s orders is a classic topic: order-1 was replicated from broker-1 to the other two brokers and acked at 450 ms. clicks is diskless (KIP-1163 draft): broker-1 buffered click-1, uploaded it as the WAL object wal-0001, the coordinator on broker-3 committed it and p-clicks was acked at 1450 ms. c1 in az-b read click-1 at 1500 ms and committed its offset at 2000 ms. Open at this step: step 1, Both topics flowing
- Object storage stops; orders is still acked t+3.100s The bucket stopped at 2500 ms. order-2 was acked at 3050 ms, 300 ms after it was sent, as before: a classic topic replicates between brokers and never touches object storage. click-2 sits in broker-1's WAL buffer as wal-0002, and its upload started at 3250 ms. The draft says nothing about back-pressure, so here the broker keeps buffering (simulator choice). Open at this step: step 2, Object storage stops; orders is still acked
- The upload fails: KAFKA_STORAGE_ERROR t+4.100s wal-0002's upload failed: no object was written, the coordinator committed nothing and click-2 got no offset. At 4050 ms p-clicks got KAFKA_STORAGE_ERROR. The draft says only that the pending produce requests receive errors and that produce fails retriably; the error code is the simulator's choice. It is retriable, so p-clicks sends click-2 again after its 500 ms backoff. Open at this step: step 3, The upload fails: KAFKA_STORAGE_ERROR
- The retry fails too t+5.900s The retry went into wal-0003 at 4550 ms; its upload started at 5050 ms and failed at 5850 ms with the same error, so p-clicks backs off and tries again. Object storage still holds only wal-0001, and the high watermark of clicks is still 1. c1 kept polling and found nothing new; with nothing past its offset, its fetch never needed object storage, so it got no error. Open at this step: step 4, The retry fails too
- Storage is back: the retry is acked t+8.550s The bucket started again at 6000 ms. The next retry went into wal-0004 at 6350 ms, was uploaded, and the coordinator committed it at 7650 ms: click-2 got offset 1 and p-clicks was acked. c1 read it at 8000 ms and committed at 8500 ms. Nothing was lost, and nothing was written twice: a failed upload leaves no object behind. Open at this step: step 5, Storage is back: the retry is acked
The takeaway
orders was acked the whole time: a classic topic replicates between brokers and never touches object storage. Every clicks upload failed while the bucket was down, so no object was written, the coordinator committed nothing, no offset was assigned, and p-clicks got an error and retried. Once the bucket was back, the next upload was committed and acked, c1 read it, and nothing was lost or duplicated: a failed upload leaves nothing behind to commit twice. All of this follows the KIP-1163 / KIP-1164 draft, not released Kafka. Simulator choices, where the draft is silent: the error is KAFKA_STORAGE_ERROR (retriable), the broker keeps buffering during the outage, and the failure is reported when the upload and commit would have finished.
Configs in this scenario
-
retriesHow many times the producer sends a batch again after a transient error (default 2147483647, so in practice delivery.timeout.ms ends the retrying); idempotence needs it above 0. -
retry.How long the producer waits before retrying a failed send, so it does not hammer a broker that is still recovering.backoff. ms
Embed this scenario
Paste this into a blog post, a course page or your team's docs. The scenario plays inside your page, and the link under it points readers to this walkthrough.
<iframe src="https://monedula.dev/kafka-simulator/embed/?scenario=06.1.4" title="Kafka Simulator: Diskless: object storage goes down" width="100%" height="520" style="border:1px solid #d0d0d0;border-radius:8px" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<p><a href="https://monedula.dev/kafka-simulator/scenarios/diskless-object-storage-outage/">Diskless Kafka (KIP-1163): when object storage goes down</a></p> Further reading
KIP-1163 on the Apache Kafka wiki
Troubleshooting
More in Diskless
- Diskless Kafka topics (KIP-1163): the write path
- Diskless vs classic Kafka: cross-AZ replication traffic
- Diskless Kafka produce latency: the price of object storage
- Aiven Inkless diskless Kafka: the write path
- Aiven Inkless: what a PostgreSQL outage does to Kafka
- Aiven Inkless: what losing a Kafka broker costs
- Aiven Inkless: a slow S3 bucket fails Kafka produce
- KafScale diskless Kafka: etcd lease, S3 segment, ack
- KafScale 2.1 diskless Kafka: a lease owner crashes
- KafScale 2.1 diskless Kafka: when etcd goes down
- KafScale 2.1 diskless Kafka: when S3 goes down
- KafScale 2.1 proxy: etcd down past the 60 s cache TTL
- KafScale 2.1: a Kafka producer timeout that still wrote
- KafScale 2.1 diskless Kafka: lease handover, no overwrite
- KafScale 2.1 diskless Kafka: a paused broker comes back
- AutoMQ diskless Kafka: one S3 WAL per broker, then ack
- AutoMQ diskless Kafka: a broker crash and WAL failover
- AutoMQ diskless Kafka: moving a partition, no copying
- AutoMQ diskless Kafka: zone router, no cross-zone data
- AutoMQ diskless Kafka: when S3 goes down
- WarpStream diskless Kafka: the write path through Agents
- WarpStream Kafka: a leader per client, a cache per zone
- WarpStream Kafka: an Agent dies mid-commit
- WarpStream Kafka: the control plane goes down
- WarpStream Kafka Ripcord: produce without the control plane
- WarpStream Kafka lightning topics: ack before the commit
- WarpStream Kafka transactions in the control plane
- Redpanda Kafka write path: the offset comes after S3
- Redpanda Kafka leader crash: a Raft election, no replay
- Redpanda Kafka S3 outage: uploads time out, Raft holds
- Redpanda Kafka L0 to L1: the LRO and who serves a read
- Redpanda Kafka transactions: exactly-once on Cloud Topics
- Nisshi diskless Kafka: watermark.json, then the batch
- Nisshi diskless Kafka on PostgreSQL: a row lock per write
- Nisshi diskless Kafka: two brokers write one partition
- Nisshi diskless Kafka: reading through another broker
- Nisshi diskless Kafka: a broker dies mid-write
- Nisshi diskless Kafka: when PostgreSQL goes down
- Nisshi diskless Kafka: what 0.8.2 refuses
- Ursa for Kafka write path: Oxia assigns the offset
- Ursa for Kafka zones: the zonal owner and the zone cache
- Ursa for Kafka compaction: from WAL objects to Parquet
- Ursa for Kafka broker failure: a kill and a silent broker
- Ursa for Kafka: diskless and disk topics, side by side