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

Return 503 on healthz with error #6754

Merged
merged 3 commits into from
Jul 29, 2020
Merged

Return 503 on healthz with error #6754

merged 3 commits into from
Jul 29, 2020

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Jul 28, 2020

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The healthz must return an error HTTP status code.

Which issues(s) does this PR fix?

Fixes a regression from #5558

Other notes for review

For this, I have chosen 503 since that indicates that the server is not ready to serve requests.

@prestonvanloon prestonvanloon added Bug Something isn't working Priority: Critical Highest, immediate priority item labels Jul 28, 2020
@prestonvanloon prestonvanloon requested a review from a team as a code owner July 28, 2020 23:37
farazdagi
farazdagi previously approved these changes Jul 28, 2020
Copy link
Contributor

@farazdagi farazdagi left a comment

Choose a reason for hiding this comment

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

lgtm

shared/prometheus/service_test.go Outdated Show resolved Hide resolved
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
@codecov
Copy link

codecov bot commented Jul 29, 2020

Codecov Report

Merging #6754 into master will decrease coverage by 0.33%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6754      +/-   ##
==========================================
- Coverage   62.63%   62.29%   -0.34%     
==========================================
  Files         385      384       -1     
  Lines       30099    29787     -312     
==========================================
- Hits        18852    18557     -295     
+ Misses       8578     8574       -4     
+ Partials     2669     2656      -13     

@prylabs-bulldozer prylabs-bulldozer bot merged commit 1a1c1bb into master Jul 29, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-healthz branch July 29, 2020 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Priority: Critical Highest, immediate priority item Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants