We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ZIO version: 1.0.0-RC21
Hi guys, simple reproducible OOM via bufferSliding:
bufferSliding
ZStream .repeat(Foo(1L)) .bufferSliding(1) .runDrain .exitCode
The text was updated successfully, but these errors were encountered:
Thank you for reporting (and minimizing!) @jsfwa. We'll look into this.
Sorry, something went wrong.
Just checked, the leak is in this recursive call https://github.com/zio/zio/blob/master/streams/shared/src/main/scala/zio/stream/ZStream.scala#L434 changed it to
Take.fromPull(as).tap(take => queue.offer(take)).doWhile(_ != Take.end).unit
And looks like it solved the problem, but not sure about the correctness of this approach
@jsfwa Interesting. Would you like to open a PR with the fix and we can verify it there?
Hey! I'm @jsfwa colleague, and he asked me to create PR because he away from the computer for a weekend.
Successfully merging a pull request may close this issue.
ZIO version: 1.0.0-RC21
Hi guys, simple reproducible OOM via
bufferSliding
:The text was updated successfully, but these errors were encountered: