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

fix(healthcheck): only one_loop is needed in the passive health check report #4116

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

Ben0625
Copy link
Contributor

@Ben0625 Ben0625 commented Apr 23, 2021

Fix #4103

Pre-submission checklist:

  • [√] Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • [√] Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander spacewander changed the title only one_loop is needed instead of double loop fix(healthcheck): only one_loop is needed in the passive health check report Apr 23, 2021
apisix/init.lua Outdated
end
if resp_status == status then
checker:report_http_status(api_ctx.balancer_ip,
port or api_ctx.balancer_port,
Copy link
Member

Choose a reason for hiding this comment

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

Please keep the original indentation with space

Copy link
Member

Choose a reason for hiding this comment

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

@Ben0625
You can create another commit in this branch to fix it, and push it again.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
@spacewander spacewander merged commit dba0176 into apache:master Apr 26, 2021
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.

bug: Multiple unhealthy HTTP increment if the size of passive.unhealthy.http_statuses is more than 1
4 participants