Skip to content

PROTON-2200 Fix memory leak in go message unmarshal - #231

Merged
jiridanek merged 1 commit into
apache:masterfrom
d98762625:fix-memory-leak
Apr 27, 2020
Merged

jiridanek merged 1 commit into
apache:masterfrom
d98762625:fix-memory-leak

Conversation

@d98762625

Copy link
Copy Markdown
Contributor

When using this library in an application to receive messages from QPID, we found our containers were getting OOM killed in kubernetes.

This fixes the memory leak we uncovered.

@astitcher

Copy link
Copy Markdown
Member

This fix looks good to me @alanconway what do you think?

@alanconway alanconway left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch, merge it!

Comment thread go/pkg/amqp/url_test.go Resolved
@alanconway

Copy link
Copy Markdown
Contributor

/lgtm

@d98762625 d98762625 changed the title WIP: Fix memory leak in go message unmarshal Fix memory leak in go message unmarshal Apr 8, 2020
@d98762625

Copy link
Copy Markdown
Contributor Author

I don't know if I should or not, but I am unable to merge this PR myself. I assume we just wait for one of the maintainers to merge it?

@jiridanek jiridanek changed the title Fix memory leak in go message unmarshal PROTON-2200 Fix memory leak in go message unmarshal Apr 27, 2020
@jiridanek

Copy link
Copy Markdown
Contributor

Created a Jira. I am deleting the commits concerning url_test.go which was fixed in a different way meanwhile. Should be good to go when CI passes.

@jiridanek
jiridanek merged commit 494a1a8 into apache:master Apr 27, 2020
@d98762625
d98762625 deleted the fix-memory-leak branch April 30, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants