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: get rid of shutdown errors #7058

Merged
merged 1 commit into from
Mar 30, 2020
Merged

fix: get rid of shutdown errors #7058

merged 1 commit into from
Mar 30, 2020

Conversation

Stebalien
Copy link
Member

Instead of feeding through the top-level context, feed through a cancel-free context (that still carries the same context values). Then, when the top-level context is canceled, call stop to shut everything down in-order. Finally, cancel the inner context to make sure everything has been cleaned up.

Ideally, we just wouldn't use contexts for this. But this is strictly better than what we have.

Instead of feeding through the top-level context, feed through a cancel-free
context (that still carries the same context values). Then, when the top-level
context is canceled, call `stop` to shut everything down in-order. Finally,
cancel the inner context to make sure everything has been cleaned up.

Ideally, we just wouldn't use contexts for this. But this is strictly better
than what we have.
@Stebalien
Copy link
Member Author

Merging without review because I'm trying to cut an early RC before Monday and printing a scary ERROR message on shutdown is not something I want to deal with in the RC.

@Stebalien Stebalien merged commit 8f623c9 into master Mar 30, 2020
@Stebalien
Copy link
Member Author

@willscott please review post-merge when you get a chance.

@Stebalien Stebalien deleted the fix/shutdown-errors branch March 30, 2020 04:17
Copy link
Contributor

@willscott willscott left a comment

Choose a reason for hiding this comment

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

👍

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