Skip to content

[KIP-932] Mock Broker: Add transaction lifecycle support#5349

Open
Ankith L (Ankith-Confluent) wants to merge 5 commits intodev_kip-932_queues-for-kafkafrom
dev_kip-932_mock_broker_transactions
Open

[KIP-932] Mock Broker: Add transaction lifecycle support#5349
Ankith L (Ankith-Confluent) wants to merge 5 commits intodev_kip-932_queues-for-kafkafrom
dev_kip-932_mock_broker_transactions

Conversation

@Ankith-Confluent
Copy link
Member

Adds transaction lifecycle support to the mock broker for KIP-932 share group testing.
EndTxn now writes COMMIT/ABORT control batches to partition logs.
AddPartitionsToTxn tracks partitions in the transaction.
Aborted transaction ranges are recorded per-partition for read_committed filtering.
LSO (Last Stable Offset) is tracked and used to cap ShareFetch acquisition.
Adds isolation_level config API for share groups and 6 unit tests.

@Ankith-Confluent Ankith L (Ankith-Confluent) requested a review from a team as a code owner March 6, 2026 05:05
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@Ankith-Confluent Ankith L (Ankith-Confluent) changed the title Dev kip 932 mock broker transactions [KIP-932] Mock Broker: Add transaction lifecycle support Mar 6, 2026
@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_kip-932_mock_broker_transactions branch 2 times, most recently from eac0ed6 to d356c86 Compare March 11, 2026 06:28
- Added transaction state management to handle AddPartitionsToTxn and EndTxn requests.
- Introduced structures for tracking active transactions and aborted transactions.
- Enhanced ShareFetch and ShareAcknowledge handling to support read_committed isolation level.
- Updated share group initialization to include isolation level configuration.
- Implemented functions to manage transaction states and partition updates.
- Modified existing functions to accommodate new transaction logic and ensure proper locking and state management.
@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_kip-932_mock_broker_transactions branch from d356c86 to 2daf4de Compare March 12, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant