-
Notifications
You must be signed in to change notification settings - Fork 603
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
Memory leaks possibly related to Topic behaviour #2408
Comments
Had a go at running bisect:
|
Hmmm It is a bit strange if that is the first bad commit. From taking a new look, i cannot see anything in the changes of that commit that would introduce a memory leak. For easy inspection, look at changes without whitespace changes. @xjurko Thanks anyway for the help with bisecting. I will take a look when I have some time. |
HI @diesalbla had another go with bisect just to confirm and turns out the previous one wasn't the first bad commit. Looks like first bad commit was actually few commits earlier:
I checked out and ran manually again a few times to verify and rule out flakiness
Sorry for misidentifying this the first time |
|
That's the same commit which was (partially) rolled back in e25a6e1 |
Yeah... after that commit there was a first partial rollback a few months ago, and another one earlier this week. There may be a last part. I would be curious as to why removing that "closure" runner results in memory leaks... clearly something is being inadvertently retained that should not be. |
Hiya noticed there has been some progress on this thanks. Just to confirm, unfortunately, the leak seems to still be present and the test case mentioned above fails on the main branch. Ran this multiple times on separate machines to rule out any flakiness. Ran with java11. |
I bisected the "hung merge" failure -- started failing here: ef57231 Note this doesn't necessarily point to the problem being
|
Fixed by #2412 |
While porting a large codebase to CE3 and friends, we can see some memory leaks occurring. By the way, thanks for fixing an earlier one reported by @svalaskevicius in fs2 3.0.3.
The present issue has possibly a common root in the
Topic
behaviour. @karimak123 has come up with this reproducing example that leaks quite heavily:Further to that, the pattern that involves consuming data from an http4s endpoint with ServerSentEvent data, decoding it, and then publishing to a
Topic
and subscribing to that also results in a leak. The curious thing about this latter one is that when we substributed the actual stream consumption with a mock repeat stream, the leak does not seem to be manifest. However, theTopic
seems to be the common theme, as substituting it with a CE3Queue
removes the leak as well.The text was updated successfully, but these errors were encountered: