Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: kip447 transactions #1728

Merged
merged 16 commits into from
Apr 8, 2024
Merged

feat: kip447 transactions #1728

merged 16 commits into from
Apr 8, 2024

Conversation

johanandren
Copy link
Member

@johanandren johanandren commented Apr 3, 2024

This uses the new APIs added for KIP447 to pass the right consumer group metadata along when committing the transaction. This should avoid the need to use any specific scheme for the transaction id other than making sure it is unique per consumer-producer stream (so could be a UUID for example)

@johanandren johanandren marked this pull request as ready for review April 4, 2024 15:00
Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see if I get this correctly:

  1. The source/flow auto-generates the transactionalId
  2. When consuming, the TransactionalMessageBuilder injects ConsumerGroupMetadata with the offset
  3. That metadata is used in TransactionalProducerStage.commitTransaction
  4. Safeguards avoid pre-emptive stage shutdown

Other changes improve thread safety and make use of improved stuff in Scala and Akka.

LGTM.

Co-authored-by: Enno Runne <458526+ennru@users.noreply.github.com>
@johanandren
Copy link
Member Author

Pretty much, small correction:

  1. When consuming, the TransactionalMessageBuilder injects a way to fetch ConsumerGroupMetadata in the offset pass along
  2. That (async) fetch metadata call is used in TransactionalProducerStage.commitTransaction

@johanandren johanandren merged commit e745e58 into main Apr 8, 2024
9 checks passed
@johanandren johanandren deleted the wip-kip447-transactions branch April 8, 2024 09:30
@johanandren johanandren added this to the 5.0.1 milestone May 3, 2024
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.

2 participants