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

Refactor the asset manager install method #1654

Merged
merged 3 commits into from
Jun 8, 2018
Merged

Conversation

echlebek
Copy link
Contributor

@echlebek echlebek commented Jun 6, 2018

What is this change?

Fixes some resource lifetime bugs in the asset manager.

    Refactor the asset manager so that leaks do not occur.
    
    This commit refactors the install method of the asset manager so
    that leaks do not occur if errors occur while assets are being
    installed.
    
    * file descriptors no longer leak
    * lock files no longer persist past the method's invocation
    
    Signed-off-by: Eric Chlebek <eric@sensu.io>

Why is this change necessary?

Closes #1653

This commit refactors the install method of the asset manager so
that leaks do not occur if errors occur while assets are being
installed.

* file descriptors no longer leak
* lock files no longer persist past the method's invocation

Signed-off-by: Eric Chlebek <eric@sensu.io>
@echlebek echlebek force-pushed the refactor/assetmanager branch from 10323a3 to 089edbd Compare June 7, 2018 07:54
echlebek added 2 commits June 7, 2018 10:30
Signed-off-by: Eric Chlebek <eric@sensu.io>
Signed-off-by: Eric Chlebek <eric@sensu.io>
Copy link
Contributor

@jamesdphillips jamesdphillips left a comment

Choose a reason for hiding this comment

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

bene bene! 😗👌

@echlebek echlebek merged commit 2d07f04 into master Jun 8, 2018
@echlebek echlebek deleted the refactor/assetmanager branch June 8, 2018 16:08
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