---
title: "WarpStream Kafka transactions in the control plane"
description: "WarpStream (Agent v857) transactions: the control plane ends each one and keeps its state, read_committed waits at the LSO, and no markers are written."
url: https://monedula.dev/kafka-simulator/scenarios/warpstream-transactions/
---

# WarpStream Kafka transactions in the control plane

Scenario 10.1.7 · WarpStream: transactions in the control plane. Diskless · Advanced · about 4 min · Apache Kafka 4.4 · WarpStream (Agent v857).

WarpStream (Agent v857) · the control plane coordinates transactions and keeps their state, and no marker is written; in the simulator, commit and abort wait for the transaction's records to commit, then take one control plane step, and the open transaction holds read_committed at the LSO.

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

## What you start with

WarpStream supports Kafka transactions, and its hosted control plane coordinates them. Agents run in your account and write files; the control plane commits each file and assigns its offsets, so a transactional record has an offset only once its file is committed. WarpStream writes no transaction markers, and the control plane keeps the transaction state; the simulator shows no __transaction_state topic. Three Agents run here, one per zone, and orders has three partitions. tx (transactional.id tx-app, idempotent, az-a) commits one transaction and aborts a second; p-plain (idempotence off, az-c) writes the same partition in between. g-rc reads with read_committed and g-ru with read_uncommitted. Scenarios 04.2.1 and 04.2.2 show commit, abort and read_committed on classic Kafka. Timings are slowed so each phase gets its own frame.

## Step by step

1. **A transaction opens; the control plane tracks it** (t+1.700s): tx (transactional.id tx-app, idempotent, ws_az=az-a) began a transaction at 100; begin is instant in the simulator. Its first record, k1, went into a file from agent-1, which the control plane committed at 1450 at offset 0 of orders-2. Only then did the transaction open on the partition: the control plane lane shows it from offset 0, and the LSO stays there. p-plain (idempotence off, ws_az=az-c) wrote p1 through agent-3; its file was committed at 1650 at offset 1, inside the open transaction. tx sent k3 at 700, into a later file, and called commit at 900 while k3 was still on its way. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=10.1.7&t=0)
2. **Commit waits for the records to commit, then one control plane step** (t+2.450s): The commit did not end the transaction at 900. It waited until k3's file was committed, at 2050 at offset 2. That wait is a simulator choice, as a Kafka producer flushes before it commits a transaction; the simulator checks for it every 200 ms, the slowed commit time. Then the control plane ended the transaction in one step, at 2300: the open transaction left the lane and the LSO moved from 0 to 3, the high watermark. No marker was written, so no offset went to one. g-rc (read_committed) read offsets 0 to 2 at 2400; g-ru (read_uncommitted) had read 0 and 1 at 1800 and read 2 at 2400. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=10.1.7&t=1)
3. **The LSO holds the read_committed consumer** (t+4.850s): tx began a second transaction at 2600. Its k4 was committed at 3950 at offset 3, where the transaction opened and the LSO stopped. p-plain's p2 was committed at 4150 at offset 4, and tx's k6 at 4550 at offset 5. g-ru read offsets 3 to 5 at 4200 and 4800. g-rc read nothing: a read_committed consumer reads only below the LSO, so it waits at 3, with p-plain's record behind it. tx called abort at 4300, while k6 was still being uploaded. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=10.1.7&t=2)
4. **A second transaction is aborted** (t+4.950s): The abort waited the same way, for k6's file to be committed at 4550, then the control plane ended the transaction in one step at 4900. Offsets 3 and 5, tx's records, are now aborted; p-plain's offset 4 between them is not. The LSO moved to 6, the high watermark. Every record of the transaction was committed before the step, so none can land after the abort. Again no marker took an offset. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=10.1.7&t=3)
5. **read_committed skips the aborted range; read_uncommitted reads it** (t+6.050s): g-rc's next poll, at 5400, moved it from offset 3 to 6 and returned one record, p-plain's p2 at offset 4; it skipped k4 and k6. g-ru had read all three before the abort. Both groups committed offset 6 (g-ru at 5400, g-rc at 6000): g-rc read four records, g-ru six. No offset of orders-2 holds a marker and the simulator shows no __transaction_state topic: WarpStream's control plane keeps the transaction state. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=10.1.7&t=4)

## The takeaway

The first transaction opened at offset 0, where its first record was committed, and the LSO stayed there while p-plain's record and tx's second record took offsets 1 and 2. tx called commit while its second record was still in agent-1's buffer; the commit waited for that record's file to commit, then the control plane ended the transaction in one step, and the LSO moved to 3. The second transaction held g-rc at offset 3 while g-ru read offsets 3 to 5. The abort waited the same way and marked offsets 3 and 5 aborted, so g-rc read p-plain's record at offset 4 and skipped the other two; g-ru had already read all three. No offset went to a marker. WarpStream facts: transactions are supported, the control plane coordinates them and keeps their state, no transaction markers are written, and the Agent skips aborted records, as WarpStream's blog says. Simulator choices: commit and abort wait for the transaction's records to commit before ending (for a commit, as the Kafka producer flushes before it commits a transaction), then take a single control plane step of one commit time; there is no __transaction_state topic, since the control plane holds that state; begin is instant; that skip applies to read_committed fetches, and read_uncommitted returns aborted records, as in Kafka; the 500 ms batchTimeout, 600 ms upload and 200 ms commit are slowed figures so each phase is a frame. On classic Kafka a transaction coordinator writes commit and abort markers into the partitions and keeps its state in the __transaction_state topic (scenarios 04.2.1 and 04.2.2).

## Configs in this scenario

- [`transactional.id`](https://kafka.apache.org/44/configuration/producer-configs/#producerconfigs_transactional.id): A stable name that turns on transactions for a producer (and implies idempotence); a new producer that calls initTransactions() with the same id fences the older one.

## Further reading

- [WarpStream blog](https://www.warpstream.com/blog/kafka-transactions-explained-twice)
