Scenario 10.1.5 · WarpStream: Ripcord
WarpStream Kafka Ripcord: produce without the control plane
WarpStream (Agent v857) · with Ripcord on, produce goes on without the control plane: files are acked with offset 0 and journaled, an idempotent producer is refused, consumers wait, and the replay commits a batch acked earlier after one acked later.
Run this scenario in the playgroundRipcord is on; the control plane goes down. t+2.050s
orders is a WarpStream topic (Agent v857). Three Agents run here, one per zone, with Ripcord on. p-a (ws_az=az-a) writes through agent-1 and p-c (ws_az=az-c) through agent-3, both with idempotence off; p-idem in az-b is idempotent. The first records, k1 from p-a and k2 from p-c, were committed by the control plane at 1450 and acked: k1 got offset 0 of partition 2 and k2 offset 0 of partition 1. g1's consumer c1 in az-a read them at 1800. At 2000 the control plane stops, and the Agents notice at once (the simulator's choice). Without Ripcord, produce would now be rejected.
Open at this step: step 1, Ripcord is on; the control plane goes downProduce goes on: acked with offset 0, kept in a journal. t+3.700s
At 2100 p-c sends k3, and at 2500 p-a sends k4, both to partition 2. Each Agent buffers and uploads a file as usual. agent-3's file with k3 is in object storage at 3250, and agent-1's file with k4 at 3650. With Ripcord the Agent acks once the file is written: p-c is acked at 3250 and p-a at 3650, each with offset 0. That is not the record's offset (offset 0 of partition 2 is k1): nothing can be committed, so each file goes into a journal, to be committed when the control plane returns. Partition 2's high watermark stays at 1.
Open at this step: step 2, Produce goes on: acked with offset 0, kept in a journalAn idempotent producer is refused under Ripcord. t+3.900s
At 3800 p-idem, an idempotent producer, sends k5. At 3850 it is refused with INVALID_REQUEST, and the record reaches no Agent. WarpStream's docs say idempotence and transactions must be off for Ripcord, but not how a producer that has them on is answered: the refusal and the code are the simulator's choices. INVALID_REQUEST is not retriable, so p-idem stops with an error.
Open at this step: step 3, An idempotent producer is refused under RipcordConsumers wait: nothing journaled is readable yet. t+4.250s
WarpStream's docs say consumers stop under Ripcord: the list of files to read comes from the control plane, and a journaled file has no offsets yet. c1 polled at 2400, 3000, 3600 and 4200. Each fetch failed with REQUEST_TIMED_OUT on every partition, and each try to commit what it read at 1800 failed with COORDINATOR_NOT_AVAILABLE (the docs name no codes; both are the simulator's choice). k3 and k4 are acked, yet no consumer can read them: partition 2's high watermark is still 1.
Open at this step: step 4, Consumers wait: nothing journaled is readable yetThe control plane is back: the journal replays. t+4.650s
The control plane starts at 4400, and replay jobs commit the journal, one file per commit time. The simulator runs them in Agent id order, each Agent's files in upload order (WarpStream's docs promise no order). agent-1's file commits first, at 4600: k4, acked later, gets offset 1 of partition 2. agent-3's file with k3 still waits in the journal. The replay acks nobody: both producers were acked at the upload.
Open at this step: step 5, The control plane is back: the journal replaysThe az-c batch acked first lands after the az-a batch acked later. t+6.000s
At 4800 agent-3's file commits, and k3 gets offset 2. p-c was acked at 3250, before p-a at 3650, yet its record sits after p-a's in the log: WarpStream's docs say Ripcord gives no external consistency. At 4800 c1 commits the offsets it read before the outage and reads k4; at 5400 it reads k3, and at 6000 it commits offset 3 of partition 2. The journal is empty, every acked record was read once, and p-idem's k5 was never written.
Open at this step: step 6, The az-c batch acked first lands after the az-a batch acked laterWhat 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. Ripcord lets the Agents keep taking produce while the control plane is unreachable. This is the outage of 10.1.4 with Ripcord on. Three Agents run here, one per zone. Producers p-a in az-a and p-c in az-c have idempotence off; p-idem in az-b is idempotent. Group g1 reads orders from az-a. The control plane becomes unreachable and comes back later. Timings are slowed so each phase gets its own frame.
Step by step
- Ripcord is on; the control plane goes down t+2.050s orders is a WarpStream topic (Agent v857). Three Agents run here, one per zone, with Ripcord on. p-a (ws_az=az-a) writes through agent-1 and p-c (ws_az=az-c) through agent-3, both with idempotence off; p-idem in az-b is idempotent. The first records, k1 from p-a and k2 from p-c, were committed by the control plane at 1450 and acked: k1 got offset 0 of partition 2 and k2 offset 0 of partition 1. g1's consumer c1 in az-a read them at 1800. At 2000 the control plane stops, and the Agents notice at once (the simulator's choice). Without Ripcord, produce would now be rejected. Open at this step: step 1, Ripcord is on; the control plane goes down
- Produce goes on: acked with offset 0, kept in a journal t+3.700s At 2100 p-c sends k3, and at 2500 p-a sends k4, both to partition 2. Each Agent buffers and uploads a file as usual. agent-3's file with k3 is in object storage at 3250, and agent-1's file with k4 at 3650. With Ripcord the Agent acks once the file is written: p-c is acked at 3250 and p-a at 3650, each with offset 0. That is not the record's offset (offset 0 of partition 2 is k1): nothing can be committed, so each file goes into a journal, to be committed when the control plane returns. Partition 2's high watermark stays at 1. Open at this step: step 2, Produce goes on: acked with offset 0, kept in a journal
- An idempotent producer is refused under Ripcord t+3.900s At 3800 p-idem, an idempotent producer, sends k5. At 3850 it is refused with INVALID_REQUEST, and the record reaches no Agent. WarpStream's docs say idempotence and transactions must be off for Ripcord, but not how a producer that has them on is answered: the refusal and the code are the simulator's choices. INVALID_REQUEST is not retriable, so p-idem stops with an error. Open at this step: step 3, An idempotent producer is refused under Ripcord
- Consumers wait: nothing journaled is readable yet t+4.250s WarpStream's docs say consumers stop under Ripcord: the list of files to read comes from the control plane, and a journaled file has no offsets yet. c1 polled at 2400, 3000, 3600 and 4200. Each fetch failed with REQUEST_TIMED_OUT on every partition, and each try to commit what it read at 1800 failed with COORDINATOR_NOT_AVAILABLE (the docs name no codes; both are the simulator's choice). k3 and k4 are acked, yet no consumer can read them: partition 2's high watermark is still 1. Open at this step: step 4, Consumers wait: nothing journaled is readable yet
- The control plane is back: the journal replays t+4.650s The control plane starts at 4400, and replay jobs commit the journal, one file per commit time. The simulator runs them in Agent id order, each Agent's files in upload order (WarpStream's docs promise no order). agent-1's file commits first, at 4600: k4, acked later, gets offset 1 of partition 2. agent-3's file with k3 still waits in the journal. The replay acks nobody: both producers were acked at the upload. Open at this step: step 5, The control plane is back: the journal replays
- The az-c batch acked first lands after the az-a batch acked later t+6.000s At 4800 agent-3's file commits, and k3 gets offset 2. p-c was acked at 3250, before p-a at 3650, yet its record sits after p-a's in the log: WarpStream's docs say Ripcord gives no external consistency. At 4800 c1 commits the offsets it read before the outage and reads k4; at 5400 it reads k3, and at 6000 it commits offset 3 of partition 2. The journal is empty, every acked record was read once, and p-idem's k5 was never written. Open at this step: step 6, The az-c batch acked first lands after the az-a batch acked later
The takeaway
With Ripcord on, produce went on while the control plane was down: agent-3 and agent-1 wrote their files, acked p-c and p-a with offset 0 and kept the files in a journal. p-idem, idempotent, was refused, and c1 read nothing until the control plane was back. The replay then committed agent-1's file before agent-3's, so k3, acked first, got offset 2, after k4 at offset 1. Every acked record was read once, and the journal emptied. WarpStream facts: Ripcord writes the file and acks with offset 0, and commits it later from a journal; idempotence and transactions must be off; there is no external consistency, and consumers stop. Simulator choices: the replay runs in Agent id order, each Agent's files in upload order (the docs promise no order); the refusal of the idempotent producer, with INVALID_REQUEST (the docs say only that idempotence must be off); the control plane is one up/down entity, noticed at once; REQUEST_TIMED_OUT for fetch and COORDINATOR_NOT_AVAILABLE for the group (the docs name no codes); 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.5" title="Kafka Simulator: WarpStream: Ripcord" 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-ripcord/">WarpStream Kafka Ripcord: produce without the control plane</a></p> Further reading
Troubleshooting
- TimeoutException in Kafka producers: causes and fixes
- COORDINATOR_NOT_AVAILABLE in Kafka: causes and fixes
- InvalidRequestException in Kafka: INVALID_REQUEST
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 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