-
Notifications
You must be signed in to change notification settings - Fork 141
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
Support rebalance-safe-commits with external commits #1425
Conversation
This is nice. Some questions:
|
The updated However, this is a strange set-up. The I propose that we change the construction of
Re. method |
What is |
Agreed, providing the If we want to check the settings, we could have a There is no |
Yeah, that is a good point. We'd better make very good release notes then :)
Not necessarily, but I guess that is what is needed indeed.
Check, I get it now. Well done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Some nitpicks in the comments.
BTW, enforcing rebalanceSafeCommits
in the consumer would still be nice.
zio-kafka/src/main/scala/zio/kafka/consumer/internal/LiveCommitter.scala
Outdated
Show resolved
Hide resolved
ConsumerConfig.MAX_POLL_RECORDS_CONFIG -> "200" | ||
), | ||
rebalanceListener = transactionalRebalanceListener(streamCompleteOnRebalanceRef) | ||
ZIO.scoped { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this extra scoped
fix the spurious test failures?
zio-kafka/src/main/scala/zio/kafka/producer/TransactionalProducer.scala
Outdated
Show resolved
Hide resolved
Document the transactional producer introduced in #1425.
Document the transactional producer introduced in #1425.
545743c
to
c22a55f
Compare
As discussed on Discord, we pivot this PR to support rebalance-safe-commits with external commits. The transactional producer changes are moved to a future PR. |
Just a POC for now, this was the easiest interface change I could think of
The changes to the transactional producer are removed and will come back in a later PR. Make `RunloopAccess.withRunloopZIO` private again.
c22a55f
to
afc01ee
Compare
The changes in transactional producing have been pushed in the https://github.com/zio/zio-kafka/tree/transaction-rebalance-safe-commits-followup branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
So this can be merged and released in 2.10.0? |
Yes! Though that reminds me, we neer to change the version in the docs. |
Allow rebalance-safe-commits to be used in combination with external commits. External commits are commits done to some other system than the kafka broker, e.g. a relational database.
This new capability also supports the improved
TransactionalProducer
that will be introduced in zio-kafka 3.0.0.--
Note: this PR initially also included the improved
TransactionalProducer
. This has been moved to #1434.