Skip to content

Explicit healty states #1890

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

Merged
merged 5 commits into from
Dec 11, 2019
Merged

Explicit healty states #1890

merged 5 commits into from
Dec 11, 2019

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Dec 6, 2019

What this PR does:
Inspired by PR #1866, this PR changes IsHealthy function to be explicit about which states are healthy. There is no change in functionality.

Which issue(s) this PR fixes:
There is no bug.

Checklist

  • Tests updated
  • No documentation changes
  • CHANGELOG.md updated - no functionality change

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
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.

Thanks @pstibrany. The intention in the IsHealthy() looks clearer to me and the behaviour will not change if in the future we'll add new IngesterState.

Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Approved provided the logic is updated if #1866 merges

Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

LGTM with nit

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@gouthamve gouthamve merged commit 2556418 into cortexproject:master Dec 11, 2019
@pstibrany pstibrany deleted the explicit-healty-states branch December 11, 2019 14:21
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.

6 participants