Scenario 11.1.3 · Redpanda: object storage goes down
Redpanda Kafka S3 outage: uploads time out, Raft holds
Redpanda v26.2.2 Cloud Topics · with S3 stopped the Raft groups stay healthy and nothing acked is lost: an L0 upload retries until the producer's request.timeout.ms, the batch cache still serves a tailing consumer, a read that needs S3 gets nothing, and the reconciler stalls.
Run this scenario in the playgroundS3 stops; the Raft groups stay healthy. t+4.300s
order-1 is acked, g-tail has read it from broker-2's cache, and the reconciler moved it into L1 object l1-0001 at 3890 ms (LRO 0). order-2's L0 object l0-0002 finished uploading at 4000 ms and broker-2 appended its placeholder at offset 1. S3 stops at 4100 ms. At 4300 ms that placeholder reaches broker-1 and broker-3 through Raft, which does not touch S3: the high watermark moves to 2 and p-all is acked for order-2. Every partition keeps its leader and term.
Open at this step: step 1, S3 stops; the Raft groups stay healthyUploads retry; nothing new is acked. t+8.550s
p-all sends order-3 at 4450 ms; broker-2 buffers it in L0 object l0-0003 and starts the upload at 4950 ms. The PUT fails at 5550 ms, and broker-2 tries again every 1 s (the simulator's interval): at 6550, 7550 and 8550 ms each attempt fails too. order-3 has no placeholder and so no offset; it is not acked, the high watermark stays 2, and p-all waits.
Open at this step: step 2, Uploads retry; nothing new is ackedAfter request.timeout.ms the produce times out. t+9.451s
At 9450 ms, 5000 ms after p-all sent order-3, the request reaches p-all's request.timeout.ms, which bounds its upload in Redpanda. p-all gets REQUEST_TIMED_OUT (Redpanda's produce handler maps the timeout to it), which is retriable. At 9451 ms broker-2 gives the upload up: l0-0003 is not in S3 and no placeholder points at it, so order-3 never had an offset. Nothing that was acked is touched.
Open at this step: step 3, After request.timeout.ms the produce times outA tailing consumer is served from the cache; a lagging one gets nothing. t+9.800s
g-tail is at the end of the log: it read order-2 at 4800 ms, with S3 already down, from broker-2's batch cache, which broker-2 filled when it appended order-2's placeholder. g-lag joined at 4400 ms and starts at offset 0, which only L1 object l1-0001 in S3 holds. Each of its polls needs a GET, so it returns no records and no error (the simulator's choice; Redpanda times the read out), and g-lag stays at offset 0.
Open at this step: step 4, A tailing consumer is served from the cache; a lagging one gets nothingThe reconciler stalls. t+10.000s
broker-2's reconciler tries to move offset 1 (order-2) into a new L1 object at 6000, 8000 and 10000 ms. Each L1 upload fails, so the LRO stays at 0 and order-2 stays in L0; a stalled run tries again 2 s later. Meanwhile p-all's retry of order-3 has waited in broker-2's new L0 buffer (l0-0004) since 9850 ms.
Open at this step: step 5, The reconciler stallsS3 returns: retries succeed, nothing acked was lost. t+12.640s
S3 returns at 10100 ms. The upload of l0-0004 goes through, broker-2 places order-3 at offset 2 (10950 ms), its placeholder reaches the followers, and p-all is acked (11250 ms). g-lag reads offset 0 from l1-0001 in S3 at 10400 ms, then offsets 1 and 2 from broker-2's cache; g-tail reads order-3 from the cache. The reconciler's run at 12000 ms moves offsets 1 and 2 into l1-0002, and the LRO reaches 2 at 12640 ms. Both groups have read and committed all three records.
Open at this step: step 6, S3 returns: retries succeed, nothing acked was lostWhat you start with
broker-2 leads orders-1, the partition producer p-all (acks=all, az-a) writes to. As in the write path, each record waits in broker-2's L0 buffer, uploads to S3 in an L0 object, gets its offset when broker-2 appends a placeholder to the partition's Raft log, and is acked once a follower holds the placeholder too, a majority of three. Redpanda bounds a produce request's upload by the request's timeout, the producer's request.timeout.ms; p-all sets it to 5000 ms (the Java client's default is 30 s) so the scene stays short. Group g-tail (az-a) reads records as they land. S3 stops at 4.1 s and returns at 10.1 s; group g-lag (az-a) joins during the outage and starts at the beginning of the log, whose first record the reconciler has already moved to an L1 object. The buffer interval and the upload are slowed so each phase gets its own frame.
Step by step
- S3 stops; the Raft groups stay healthy t+4.300s order-1 is acked, g-tail has read it from broker-2's cache, and the reconciler moved it into L1 object l1-0001 at 3890 ms (LRO 0). order-2's L0 object l0-0002 finished uploading at 4000 ms and broker-2 appended its placeholder at offset 1. S3 stops at 4100 ms. At 4300 ms that placeholder reaches broker-1 and broker-3 through Raft, which does not touch S3: the high watermark moves to 2 and p-all is acked for order-2. Every partition keeps its leader and term. Open at this step: step 1, S3 stops; the Raft groups stay healthy
- Uploads retry; nothing new is acked t+8.550s p-all sends order-3 at 4450 ms; broker-2 buffers it in L0 object l0-0003 and starts the upload at 4950 ms. The PUT fails at 5550 ms, and broker-2 tries again every 1 s (the simulator's interval): at 6550, 7550 and 8550 ms each attempt fails too. order-3 has no placeholder and so no offset; it is not acked, the high watermark stays 2, and p-all waits. Open at this step: step 2, Uploads retry; nothing new is acked
- After request.timeout.ms the produce times out t+9.451s At 9450 ms, 5000 ms after p-all sent order-3, the request reaches p-all's request.timeout.ms, which bounds its upload in Redpanda. p-all gets REQUEST_TIMED_OUT (Redpanda's produce handler maps the timeout to it), which is retriable. At 9451 ms broker-2 gives the upload up: l0-0003 is not in S3 and no placeholder points at it, so order-3 never had an offset. Nothing that was acked is touched. Open at this step: step 3, After request.timeout.ms the produce times out
- A tailing consumer is served from the cache; a lagging one gets nothing t+9.800s g-tail is at the end of the log: it read order-2 at 4800 ms, with S3 already down, from broker-2's batch cache, which broker-2 filled when it appended order-2's placeholder. g-lag joined at 4400 ms and starts at offset 0, which only L1 object l1-0001 in S3 holds. Each of its polls needs a GET, so it returns no records and no error (the simulator's choice; Redpanda times the read out), and g-lag stays at offset 0. Open at this step: step 4, A tailing consumer is served from the cache; a lagging one gets nothing
- The reconciler stalls t+10.000s broker-2's reconciler tries to move offset 1 (order-2) into a new L1 object at 6000, 8000 and 10000 ms. Each L1 upload fails, so the LRO stays at 0 and order-2 stays in L0; a stalled run tries again 2 s later. Meanwhile p-all's retry of order-3 has waited in broker-2's new L0 buffer (l0-0004) since 9850 ms. Open at this step: step 5, The reconciler stalls
- S3 returns: retries succeed, nothing acked was lost t+12.640s S3 returns at 10100 ms. The upload of l0-0004 goes through, broker-2 places order-3 at offset 2 (10950 ms), its placeholder reaches the followers, and p-all is acked (11250 ms). g-lag reads offset 0 from l1-0001 in S3 at 10400 ms, then offsets 1 and 2 from broker-2's cache; g-tail reads order-3 from the cache. The reconciler's run at 12000 ms moves offsets 1 and 2 into l1-0002, and the LRO reaches 2 at 12640 ms. Both groups have read and committed all three records. Open at this step: step 6, S3 returns: retries succeed, nothing acked was lost
The takeaway
S3 was down for 6 s and nothing acked was lost. The Raft groups did not notice: order-2's placeholder, appended 100 ms before S3 stopped, reached a majority through Raft, which does not touch S3, and was acked during the outage, and no partition changed its leader or term. What needs S3 stopped. broker-2 kept retrying the upload of order-3's L0 object, but Redpanda bounds a produce request's upload by the request's timeout and its produce handler answers a request that runs out of it with REQUEST_TIMED_OUT: 5000 ms after p-all sent order-3, the request timed out with that retriable error and the upload was given up. No placeholder points at that object, so order-3 never had an offset and was never acked. p-all retried it, the upload went through once S3 was back, and order-3 was placed and acked. Reads split by where the record was: g-tail read order-2 during the outage from broker-2's batch cache, filled when broker-2 appended its placeholder; g-lag's first record, offset 0, was in an L1 object only S3 holds, so it read nothing until S3 returned, then read the whole log. The reconciler's L1 upload failed too, so the LRO stayed at 0 until the first run after S3 returned moved offsets 1 and 2 to L1. Simulator choices: the upload is tried again every 1 s (Redpanda backs off from 100 ms in a retry chain); a read that needs S3 returns no records and no error (Redpanda times the read out; the error a consumer would see was not traced); a stalled reconciler run tries again 2 s later; and the buffer interval and the upload time are the slowed figures of the write path.
Configs in this scenario
-
request.How long the client waits for the response to one request before it retries or fails it (default 30000 in the Java client, which sends it as each produce request's timeout); on a Redpanda Cloud Topics topic (redpanda.storage.mode=cloud) that timeout also bounds the L0 upload of the request's records, and a request that runs out of it is answered REQUEST_TIMED_OUT.timeout. ms -
acksOn a Redpanda Cloud Topics topic (redpanda.storage.mode=cloud) acks=1 and acks=all are answered at the same point, once the L0 object holding the batch is uploaded and a Raft majority holds its placeholder, because Cloud Topics replace the requested level with a quorum ack (acks=0 takes the same path). How acks works
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=11.1.3" title="Kafka Simulator: Redpanda: 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/redpanda-object-storage-down/">Redpanda Kafka S3 outage: uploads time out, Raft holds</a></p> Further reading
Redpanda v26.2.2 source on GitHub
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
- Diskless Kafka (KIP-1163): when object storage goes down
- 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 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