-
Notifications
You must be signed in to change notification settings - Fork 138
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
ConcurrentModificationException in the release effect #1238
Comments
Hi @TobiasPfeifer. Thanks for the bug report. The problem is that the consumer is still in use when the release effect (closing the underlying java consumer) is executed. My guess is that during shutdown, the task that is using the consumer is not interrupted. There is some funky code in |
It's not that funky, it just forks it so it can interrupt it by calling I agree with your idea that something is still using the consumer at the time when @TobiasPfeifer Could you share some code that generates this error? |
Maybe this is due to |
Nope, ignore that, the final command is |
All access from zio-kafka's
Since we haven't seen this issue occur ourselves, we don't know which version this occurred with and how it can be reproduced, I propose we close this issue. Should this occur for anyone at a later time or should more details pop up, it can of course be reopened. |
It seems that the
KafkaConsumer
must be closed from the same thread which is not guaranteed with ZIO.acquireRelease AFAIKI´m providing the layers like this:
The text was updated successfully, but these errors were encountered: