KAFKA-7660: fix streams and Metrics memory leaks#5983
KAFKA-7660: fix streams and Metrics memory leaks#5983mjsax merged 2 commits intoapache:0.11.0from vvcephei:0.11.0-memory-leaks
Conversation
|
@ijuma Again, sorry for the spam, but the 0.11.0 builder also looks misconfigured. |
|
Retest this please |
1 similar comment
|
Retest this please |
|
retest this please |
|
hmm. The java 7 build was aborted; not sure why. The java 8 build failed because a test timed out: I'll run it again to see what we see. Retest this, please. |
|
Checkstyle failed. |
A heap dump provided by Patrik Kleindl in https://issues.apache.org/jira/browse/KAFKA-7660 identifies the childrenSensors map in Metrics as keeping references to sensors alive after they have been removed. This PR fixes it and adds a test to be sure. Reviewers: Jason Gustafson <jason@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
|
Thanks, @mjsax; I've fixed it. Awesome that it doesn't fail the build for that error :/ |
|
Java8 passed. Java7 failed with know flaky test. Retest this please. |
|
Java 8 failed in: Java 7 looks like the tests hung around the 30 minute mark, then the next message is that the test was aborted after 3 hours. Not sure what that's about. Retest this, please. |
|
Tests passed locally for me. Merging. |
Backport two memory-leak fixes (#5974 and #5953) (see also 2.1: #5979, 2.0: #5980, 1.1: #5981, 1.0: #5982 )
It looks like we already had the parentSensors fix in 0.11.0 and lost it in 2.0. The change in
this PR just tidies it up a little for consistency with later branches.
Committer Checklist (excluded from commit message)