---
title: "Diskless Kafka (KIP-1163): when object storage goes down"
description: "KIP draft: the bucket stops, the WAL upload fails, the diskless producer gets a retriable error, and a classic topic in the same cluster keeps working."
url: https://monedula.dev/kafka-simulator/scenarios/diskless-object-storage-outage/
---

# Diskless Kafka (KIP-1163): when object storage goes down

Scenario 06.1.4 · Diskless: object storage goes down. Diskless · Advanced · about 3 min · Apache Kafka 4.4.

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 it: https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4

## What 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

1. **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](https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4&t=0)
2. **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](https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4&t=1)
3. **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](https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4&t=2)
4. **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](https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4&t=3)
5. **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](https://monedula.dev/kafka-simulator/playground/?scenario=06.1.4&t=4)

## 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

- [`retries`](https://kafka.apache.org/44/configuration/producer-configs/#producerconfigs_retries): How 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.backoff.ms`](https://kafka.apache.org/44/configuration/producer-configs/#producerconfigs_retry.backoff.ms): How long the producer waits before retrying a failed send, so it does not hammer a broker that is still recovering.

## Further reading

- [KIP-1163 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1163%3A+Diskless+Core)

## Troubleshooting

- [KAFKA_STORAGE_ERROR in Kafka: disk failures and Inkless](https://monedula.dev/kafka/troubleshooting/kafka-storage-exception/)
