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

core: Don't shutdown if key upgrades fail due to canceled context #7070

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

briankassouf
Copy link
Member

fixes #7065


// If we fail due to anything other than a context canceled
// error we should shutdown as we may have the incorrect Keys.
if !strings.Contains(err.Error(), context.Canceled.Error()) {
Copy link
Member

Choose a reason for hiding this comment

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

Thoughts on DeadlineExceeded? Probably also continue for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

These contexts should never have deadlines

Copy link
Member

Choose a reason for hiding this comment

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

That is fair. :-)

@briankassouf briankassouf added this to the 1.2 milestone Jul 5, 2019
@briankassouf briankassouf merged commit 8e93f59 into master Jul 5, 2019
@briankassouf briankassouf deleted the key-upgrades-ctx branch July 5, 2019 21:19
@jefferai jefferai modified the milestones: 1.2, 1.1.4 Jul 23, 2019
jefferai pushed a commit that referenced this pull request Jul 23, 2019
)

* core: Don't shutdown if key upgrades fail due to canceled context

* Continue if we are not shutting down
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.

Catch performKeyUpgrades context canceled errors
2 participants