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

plugin: fix process leak when Setup() fails #9557

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

sorindumitru
Copy link
Contributor

We've noticed some leftover processes from vault plugins on our boxes. Some
of them were even left over from previous instances of the service and reparented
to init. This could cause issues if too many of them accumulate.

When running with TRACE logging the logs showed that there was an error return by
the call to Setup() the plugin. Looking through the code it looks like we do not
call Cleanup() in that case.

We've noticed some leftover processes from vault plugins on our boxes. Some
of them were even left over from previous instances of the service and reparented
to init.  This could cause issues if too many of them accumulate.

When running with TRACE logging the logs showed that there was an error return by
the call to Setup() the plugin. Looking through the code it looks like we do not
call Cleanup() in that case.
@hashicorp-cla
Copy link

hashicorp-cla commented Jul 22, 2020

CLA assistant check
All committers have signed the CLA.

@ncabatoff
Copy link
Collaborator

Sorry, still CLA issues it seems. I'm going to override it.

@ncabatoff ncabatoff added this to the 1.5.1 milestone Jul 22, 2020
@ncabatoff ncabatoff merged commit 1dd99e8 into hashicorp:master Jul 22, 2020
ncabatoff pushed a commit that referenced this pull request Jul 22, 2020
We've noticed some leftover processes from vault plugins on our boxes. Some
of them were even left over from previous instances of the service and reparented
to init.  This could cause issues if too many of them accumulate.

When running with TRACE logging the logs showed that there was an error return by
the call to Setup() the plugin. Looking through the code it looks like we do not
call Cleanup() in that case.

Co-authored-by: Sorin Dumitru <[email protected]>
ncabatoff added a commit that referenced this pull request Jul 22, 2020
We've noticed some leftover processes from vault plugins on our boxes. Some
of them were even left over from previous instances of the service and reparented
to init.  This could cause issues if too many of them accumulate.

When running with TRACE logging the logs showed that there was an error return by
the call to Setup() the plugin. Looking through the code it looks like we do not
call Cleanup() in that case.

Co-authored-by: Sorin Dumitru <[email protected]>
@pierresouchay
Copy link

Thank you for solving this @sorindumitru !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants