Skip to content

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

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

@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