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

Fix a goroutine leak in the signal handler code path #523

Merged
merged 3 commits into from
Oct 19, 2017

Conversation

jwreagor
Copy link
Contributor

The root cause of this issue was regarding our change to shutting down via
context. While implementating that change set there was a goroutine leak
introduced that did not provide a clean way for shutting down and reloading the
signal handler. This caused signal handling to be duplicated across reloads.

Fixes: #521

@jwreagor
Copy link
Contributor Author

jwreagor commented Oct 18, 2017

Looks like the postStop job of the test_sigterm integration test is not firing. Looking into it...

The root cause of this issue was regarding our change to shutting down via
context. While implementating that change set there was a goroutine leak
introduced that did not provide a clean way for shutting down and reloading the
signal handler. This caused signal handling to be duplicated across reloads.

Fixes: TritonDataCenter#521
@jwreagor
Copy link
Contributor Author

I'm optimizing this a bit further now that I've noticed we no longer need this in the main application event loop.

@jwreagor
Copy link
Contributor Author

I think this one is GTG @stack72.

@stack72
Copy link

stack72 commented Oct 19, 2017

LGTM - we discussed this outside of github already

@jwreagor jwreagor merged commit 9c8c376 into TritonDataCenter:master Oct 19, 2017
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.

2 participants