Skip to content

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Mar 11, 2020

What this PR does: This PR does two things:

  • removes os.Exit calls from lifecycler. Lifecycler now enters Failed state, and reports problem via failure case.
  • components that use Lifecycler now watch it for failures, and if Lifecycler fails, these components enter Failed state as well. To do that, new ServiceFailureWatcher was introduced. It can watch either a service, or service manager.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@pstibrany pstibrany changed the title Lifecycler errors Lifecycler errors don't make process exit immediately, but let other modules shutdown properly Mar 11, 2020
@pstibrany
Copy link
Contributor Author

cc @rfratto @cyriltovena – you may want to know about this. If merged, it will be post-0.7.

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM! I left few comments. Please take a look, but they're non blocking.

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany
Copy link
Contributor Author

Thanks for review, I accepted all your suggestions.

@pstibrany pstibrany merged commit 58c081a into cortexproject:master Mar 11, 2020
@pstibrany pstibrany deleted the lifecycler-errors branch May 8, 2020 18:39
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.

2 participants