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

force closing resources at conductor close #77

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

magnoyu
Copy link

@magnoyu magnoyu commented Oct 5, 2022

Currently when the client conductor is done, we did not go through the lingering resources and close them. In the Java version, there is the CloseHelper that is doing that. This PR is to address that issue. The problem was exposed as we create a new client conductor every time we take a snapshot. Then the file descriptor of the logbuffers linger forever for every snapshot as they were not properly closed.

@ethanf ethanf self-requested a review October 12, 2022 15:53
Copy link
Collaborator

@ethanf ethanf left a comment

Choose a reason for hiding this comment

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

Looks good to me. Cleanup and error handling is quite messy right now.

@ethanf ethanf merged commit b4af406 into lirm:master Oct 12, 2022
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.

3 participants