-
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
Prevent unlimited enqueueing of CommitAvailable commands #1390
base: master
Are you sure you want to change the base?
Conversation
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.
At first I thought, how could this be a problem? But then I saw that this solution is quite elegant so let's do it. Did you keep an eye on the performance benchmark?
zio-kafka/src/main/scala/zio/kafka/consumer/internal/Runloop.scala
Outdated
Show resolved
Hide resolved
This PR seems to be slower on the benchmark. Starting another run to see if is transient... |
Retry gives the same result. |
For every commit, a
CommitAvailable
command is enqueued, which could theoretically lead to an unbounded queue growth when committing records one by one and forking the commit.Relates to #1386