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

/ready now returns 200, not 204 #2330

Merged
merged 2 commits into from
Mar 25, 2020
Merged

/ready now returns 200, not 204 #2330

merged 2 commits into from
Mar 25, 2020

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Mar 25, 2020

What this PR does: This PR changes /ready endpoint to return status code 200 instead of 204. 200 is more common, and in some environments it's difficult to change the check from 200 to 204. In Kubernetes, any code greater than or equal to 200 and less than 400 indicates success.

This PR also fixes TestBackwardCompatibilityWithChunksStorage to start first ingester with old image. This same fix has now been posted as #2329, and I will rebase this PR when #2329 is merged. (Update: Rebased)

Checklist

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

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany pstibrany requested a review from pracucci March 25, 2020 11:36
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 a couple of nits.

Updated CHANGELOG.md

Signed-off-by: Peter Štibraný <[email protected]>
@gouthamve gouthamve merged commit 5549dd2 into cortexproject:master Mar 25, 2020
codesome pushed a commit to codesome/cortex that referenced this pull request Mar 31, 2020
* /ready now returns 200, not 204

Signed-off-by: Peter Štibraný <[email protected]>

* HTTP service now takes a range of expected status codes.
Updated CHANGELOG.md

Signed-off-by: Peter Štibraný <[email protected]>
simonswine pushed a commit to grafana/e2e that referenced this pull request Jan 13, 2022
* /ready now returns 200, not 204

Signed-off-by: Peter Štibraný <[email protected]>

* HTTP service now takes a range of expected status codes.
Updated CHANGELOG.md

Signed-off-by: Peter Štibraný <[email protected]>
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.

3 participants