-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
terminate plugin clients explicitly instead of using managed ones #797
Conversation
@ncdc this look right? Gonna see if I can add some units but wanted to ensure approach is right first. |
@skriss yes, I think so. I can test it locally to confirm no leak. Give me a few mins... |
awesome, thanks! |
Signed-off-by: Steve Kriss <steve@heptio.com>
I can confirm this fixes the gzip flate Writer memory leak:
Note that there's only 1 in-use flate Writer out of 19 allocated. I need to finish up something else first before I can review the diff, FYI |
np - working on a few unit tests rn, though the manual test is the best verification of this. |
Signed-off-by: Steve Kriss <steve@heptio.com>
dd66945
to
1e59553
Compare
OK, added some unit tests (didn't go too crazy since this is all changed in master, plus manual verification is more effective for this issue, but hit the core scenarios for closing clients). |
@ncdc did you get to do a review on this? |
@skriss minimal, which is why I'd like Nolan & Carlisia to take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; we're closing the item actions in the controllers, and the actual test shows the leak is gone.
I'm fine merging this unless @skriss wants a 2nd pair of in depth eyes.
Per slack I'm fine with this merging now given the reviews/validation that have been done. |
Signed-off-by: Steve Kriss steve@heptio.com
Fixes #780