---
title: "Aiven Inkless: a slow S3 bucket fails Kafka produce"
description: "Inkless 0.51: with every S3 call slower than its timeout, 3 upload attempts fail and produce gets KafkaStorageException; the retry commits once S3 is fast."
url: https://monedula.dev/kafka-simulator/scenarios/inkless-slow-object-storage/
---

# Aiven Inkless: a slow S3 bucket fails Kafka produce

Scenario 07.1.4 · Inkless: object storage turns slow. Diskless · Advanced · about 4 min · Apache Kafka 4.4 · Aiven Inkless 0.51.

Aiven Inkless 0.51 · a slow bucket fails like a down one: each upload attempt times out, after 3 attempts the producer gets KafkaStorageException, and the retry goes through once the bucket is fast again.

Run it: https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4

## What you start with

Object storage rarely just stops; more often it gets slow. In Inkless 0.51 the S3 client gives an upload 1 s per attempt and 2 s per call, and the broker tries a file 3 times (max.upload.attempts) before it fails every request in it with KAFKA_STORAGE_ERROR. Here the bucket stays up but every operation takes 2 s (the simulator's figure), from 1.5 s to 10 s. Producer p1 is set to retries=10 and retry.backoff.ms=500. Watch the object storage lane, the WAL counter under broker-2 and p1.

## Step by step

1. **The bucket turns slow** (t+2.450s): clicks is an Inkless topic (Inkless 0.51). click-1 was uploaded in wal-0001, committed in PostgreSQL and acked at 1310 ms; c1 read it and committed its offset at 2400 ms. At 1500 ms the bucket turned slow: it still answers, but every operation now takes 2 s (the simulator's figure). click-2 went into wal-0002 on broker-2, whose upload started at 2150 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4&t=0)
2. **Two attempts time out** (t+6.200s): Inkless's S3 client allows 1 s per attempt and 2 s per call, so a 2 s operation never completes in time: wal-0002's first attempt timed out at 4160 ms and its second at 6170 ms, 10 ms of backoff apart. Inkless 0.51 has no produce back-pressure, so the broker took the record and p1 is simply waiting, with no error yet. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4&t=1)
3. **Third attempt fails: KafkaStorageException** (t+8.200s): After max.upload.attempts (3) the file failed at 8180 ms, and every request in it got KAFKA_STORAGE_ERROR: p1 waited 6.5 s for this answer. Nothing reached PostgreSQL, so click-2 has no offset and no object holds it. The bucket was never down; a slow bucket fails exactly like a down one. The error is retriable, so p1 retries after its 500 ms backoff. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4&t=2)
4. **The retry uploads; the bucket recovers** (t+10.050s): The retry went into wal-0003 at 8680 ms and its upload started at 9180 ms, still against the slow bucket. At 10000 ms the bucket was fast again, in the middle of the retry's first attempt. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4&t=3)
5. **The next attempt succeeds** (t+12.050s): wal-0003's first attempt ended at 11190 ms with the bucket healthy, so it succeeded (the simulator counts an attempt that ends after the recovery as a success). PostgreSQL committed it, click-2 got offset 1 and p1 was acked, 2510 ms after the retry. c1 read it at 11400 ms and committed at 12000 ms. Nothing was lost. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=07.1.4&t=4)

## The takeaway

The bucket never went down, yet p1 got the same KafkaStorageException an outage gives: each of the 3 upload attempts ran past Inkless's S3 timeouts, so the file failed, no object was committed, and nothing reached PostgreSQL. Inkless 0.51 has no produce back-pressure, so the broker kept accepting the record while the attempts ran, and p1 waited 6.5 s for its error. p1 retried; the bucket was fast again before the retry's first attempt ended, and that attempt succeeded and was committed. c1 then read it, and nothing was lost. Simulator choices: a slow operation takes 2 s, an attempt ends 2010 ms after the previous one (Inkless's 2 s call timeout plus its 10 ms backoff), and an attempt that ends after the bucket recovered counts as a success.

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

- [Aiven Inkless source on GitHub (inkless-release-0.51)](https://github.com/aiven/inkless/blob/inkless-release-0.51/docs/inkless/ARCHITECTURE.md)

## Troubleshooting

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