Scenario 10.1.4 · WarpStream: the control plane is unreachable
WarpStream Kafka: the control plane goes down
WarpStream (Agent v857) · without the control plane, commits in flight fail and orphan their files, produce is rejected, consumers stop and a dead Agent cannot start; when it returns everything resumes and no acked record is lost.
Run this scenario in the playgroundProducing normally; one Agent is down. t+2.150s
orders is a WarpStream topic (Agent v857). Three Agents ran here, one per zone, but agent-2 in az-b was hard-killed at 50 and is still down; no client sits in az-b. p-a (ws_az=az-a) writes through agent-1 and p-c (ws_az=az-c) through agent-3. Their first records, k1 and k2, were committed by the control plane at 1450 and acked, and g1's consumer c1 in az-a read them at 1800. Their second records, k3 and k4, are in one file on agent-1 and one on agent-3: both uploads ended at 2100, and the commit requests are with the control plane, not yet answered.
Open at this step: step 1, Producing normally; one Agent is downThe control plane is unreachable: commits fail, files are orphaned. t+2.300s
The control plane stops at 2200, and the Agents notice at once (the simulator's choice). At 2300 both commit requests fail. The files holding k3 and k4 are in object storage, but no commit names them: they are orphans. WarpStream's garbage collection deletes orphans later; the simulator does not model it, so they stay drawn. Neither record was acked, so nothing acked is lost: p-a and p-c each get REQUEST_TIMED_OUT (WarpStream's docs name no code; the simulator's choice) and will retry.
Open at this step: step 2, The control plane is unreachable: commits fail, files are orphanedProduce is rejected; consumers and the group stop. t+2.550s
WarpStream's docs say that without the control plane an Agent rejects produce and fails every request that needs the control plane. At 2550 p-a's k5 and p-c's k6 are rejected at once with REQUEST_TIMED_OUT, and nothing enters an Agent's buffer. At 2400 c1's fetch failed with REQUEST_TIMED_OUT on every partition, because the list of files to read comes from the control plane, and its offset commit failed with COORDINATOR_NOT_AVAILABLE (the simulator's choice of code), because the control plane coordinates the consumer groups. c1 keeps its partitions but reads and commits nothing.
Open at this step: step 3, Produce is rejected; consumers and the group stopThe dead Agent cannot start without the control plane. t+2.800s
At 2800 agent-2 is restarted, and the restart is refused: WarpStream's docs say an Agent cannot start without the control plane. The refusal carries InvalidConfigurationException, the simulator's choice: it names a Kafka error on every refusal, and nothing is wrong with any config. agent-2 stays down. The producers keep retrying 400 ms after each error (the simulator's retry backoff): k3 and k4 were sent again at 2700 and rejected the same way.
Open at this step: step 4, The dead Agent cannot start without the control planeThe control plane is back: everything resumes. t+3.850s
The control plane starts at 3400. The next retries go through: k3 and k4 reach agent-1 and agent-3 again at 3500, k5 and k6 at 3750, and the new sends k7 and k8 at 3850. At 3600 c1 commits the offsets it read before the outage and fetches again; nothing new is committed yet. The orphan files stay where they are: their records are written only by these retries. agent-2 is still down, since nothing restarted it after the refusal.
Open at this step: step 5, The control plane is back: everything resumesNo acked record was lost. t+5.400s
Both new files commit at 4800, the control plane assigns their offsets, and p-a and p-c are acked. c1 reads the six records at 4800 and commits at 5400. Every record a producer was acked for is in the log, once: k3 and k4 come from their retries, and their first copies sit only in the orphans. The orphans stay in object storage, outside the log, until WarpStream's garbage collection deletes them (not modelled).
Open at this step: step 6, No acked record was lostWhat you start with
WarpStream Agents run in your account, but the hosted control plane commits every file, assigns the offsets and coordinates the consumer groups. Three Agents run here, one per zone, and agent-2 in az-b is already dead. Producers p-a in az-a and p-c in az-c (idempotence off) write orders, and group g1 reads it from az-a. The control plane becomes unreachable while two files wait for their commit, and comes back later. Ripcord is off. Timings are slowed so each phase gets its own frame.
Step by step
- Producing normally; one Agent is down t+2.150s orders is a WarpStream topic (Agent v857). Three Agents ran here, one per zone, but agent-2 in az-b was hard-killed at 50 and is still down; no client sits in az-b. p-a (ws_az=az-a) writes through agent-1 and p-c (ws_az=az-c) through agent-3. Their first records, k1 and k2, were committed by the control plane at 1450 and acked, and g1's consumer c1 in az-a read them at 1800. Their second records, k3 and k4, are in one file on agent-1 and one on agent-3: both uploads ended at 2100, and the commit requests are with the control plane, not yet answered. Open at this step: step 1, Producing normally; one Agent is down
- The control plane is unreachable: commits fail, files are orphaned t+2.300s The control plane stops at 2200, and the Agents notice at once (the simulator's choice). At 2300 both commit requests fail. The files holding k3 and k4 are in object storage, but no commit names them: they are orphans. WarpStream's garbage collection deletes orphans later; the simulator does not model it, so they stay drawn. Neither record was acked, so nothing acked is lost: p-a and p-c each get REQUEST_TIMED_OUT (WarpStream's docs name no code; the simulator's choice) and will retry. Open at this step: step 2, The control plane is unreachable: commits fail, files are orphaned
- Produce is rejected; consumers and the group stop t+2.550s WarpStream's docs say that without the control plane an Agent rejects produce and fails every request that needs the control plane. At 2550 p-a's k5 and p-c's k6 are rejected at once with REQUEST_TIMED_OUT, and nothing enters an Agent's buffer. At 2400 c1's fetch failed with REQUEST_TIMED_OUT on every partition, because the list of files to read comes from the control plane, and its offset commit failed with COORDINATOR_NOT_AVAILABLE (the simulator's choice of code), because the control plane coordinates the consumer groups. c1 keeps its partitions but reads and commits nothing. Open at this step: step 3, Produce is rejected; consumers and the group stop
- The dead Agent cannot start without the control plane t+2.800s At 2800 agent-2 is restarted, and the restart is refused: WarpStream's docs say an Agent cannot start without the control plane. The refusal carries InvalidConfigurationException, the simulator's choice: it names a Kafka error on every refusal, and nothing is wrong with any config. agent-2 stays down. The producers keep retrying 400 ms after each error (the simulator's retry backoff): k3 and k4 were sent again at 2700 and rejected the same way. Open at this step: step 4, The dead Agent cannot start without the control plane
- The control plane is back: everything resumes t+3.850s The control plane starts at 3400. The next retries go through: k3 and k4 reach agent-1 and agent-3 again at 3500, k5 and k6 at 3750, and the new sends k7 and k8 at 3850. At 3600 c1 commits the offsets it read before the outage and fetches again; nothing new is committed yet. The orphan files stay where they are: their records are written only by these retries. agent-2 is still down, since nothing restarted it after the refusal. Open at this step: step 5, The control plane is back: everything resumes
- No acked record was lost t+5.400s Both new files commit at 4800, the control plane assigns their offsets, and p-a and p-c are acked. c1 reads the six records at 4800 and commits at 5400. Every record a producer was acked for is in the log, once: k3 and k4 come from their retries, and their first copies sit only in the orphans. The orphans stay in object storage, outside the log, until WarpStream's garbage collection deletes them (not modelled). Open at this step: step 6, No acked record was lost
The takeaway
The two files whose commits were in flight when the control plane stopped failed and became orphans; produce was rejected at once; c1 could neither fetch nor commit; and agent-2 could not start. No record was acked before its commit, so nothing acked was at risk: once the control plane was back, the producers' retries wrote k3 to k6, the new sends k7 and k8 followed, and every acked record was read once. WarpStream facts: without the control plane, and without Ripcord, an Agent rejects produce and fails every request that needs the control plane, fetch included, and an Agent cannot start; a produce is acked only after its commit, so an outage loses nothing acked; a file in object storage that no commit names is an orphan, and WarpStream's garbage collection deletes orphans later. Simulator choices: the control plane is one up/down entity, noticed at once; REQUEST_TIMED_OUT for produce and fetch, COORDINATOR_NOT_AVAILABLE for the group, and InvalidConfigurationException on the refused Agent restart (the docs name no codes; the simulator names a Kafka error on every refusal, and nothing is wrong with any config); the orphan files stay drawn, because garbage collection is not modelled; the retries 400 ms after each error (the simulator's retry backoff); and the 500 ms batchTimeout, 600 ms upload and 200 ms commit are slowed figures so each phase is a frame.
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=10.1.4" title="Kafka Simulator: WarpStream: the control plane is unreachable" 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/warpstream-control-plane-down/">WarpStream Kafka: the control plane goes down</a></p> Further reading
Troubleshooting
- TimeoutException in Kafka producers: causes and fixes
- COORDINATOR_NOT_AVAILABLE in Kafka: causes and fixes
- InvalidConfigurationException in Kafka: INVALID_CONFIG
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 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