Skip to content
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

2592 Chunk leak #2605

Merged
merged 4 commits into from
Dec 17, 2020
Merged

2592 Chunk leak #2605

merged 4 commits into from
Dec 17, 2020

Conversation

danielkec
Copy link
Contributor

Fixes #2592

@danielkec danielkec added this to the 2.2.0 milestone Dec 14, 2020
@danielkec danielkec self-assigned this Dec 14, 2020
@danielkec danielkec force-pushed the 2592-ByteBuffLeak branch 2 times, most recently from 6ebcde3 to 3d664f9 Compare December 14, 2020 17:56
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor message change; otherwise LGTM

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
ljnelson
ljnelson previously approved these changes Dec 14, 2020
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
// look for ByteBufRequestChunk's leak detection records
if (record.getLevel() == Level.WARNING &&
record.getMessage()
.startsWith("LEAK: RequestChunk.release() was not called before it was garbage collected.")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one I assume needs to be the same as line 66?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No its different check and it has its own message, They just happens to have very similar but not exactly same messages. I am tracking both to be extra safe

@danielkec danielkec added P1 bug Something isn't working 2.x Issues for 2.x version branch labels Dec 16, 2020
@danielkec danielkec merged commit 97c7a94 into helidon-io:master Dec 17, 2020
@romain-grecourt
Copy link
Contributor

@danielkec the new test seems to be failing intermittently, can you take a look ?
https://builds.helidon.io/api/88262DFBE59FE5DBF638CCD60E619737/tests/13/io.helidon.webserver.DataChunkReleaseTest/3/output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch bug Something isn't working P1 webserver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request chunks emitted after response is completed are not released
3 participants