-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(consul): support to fetch only health endpoint #9204
fix(consul): support to fetch only health endpoint #9204
Conversation
@tokers @spacewander @tzssangglass Please take a look at this PR, thanks |
@liuxiran Could you return CI? some other test error, which is not I add |
@Fabriceli The ci has been reruned |
@monkeyDluffy6017 Please take a look at this PR, thanks |
@monkeyDluffy6017 The CI is not very stable,could you re-run the CI? |
…t_health_endpoint
Hi @Fabriceli, thank you for all your hard work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. :)
apisix/discovery/consul/init.lua
Outdated
if watch_error_info then | ||
log.error("connect consul: ", consul_server.consul_server_url, | ||
" by sub url: ", consul_server.consul_watch_health_url, | ||
", got watch result: ", json_delay_encode(watch_result, true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
", got watch result: ", json_delay_encode(watch_result, true), | |
", got watch result: ", json_delay_encode(watch_result, true), |
No need for json_delay_encode
as the log level is error
by default ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
", got watch result: ", json_delay_encode(watch_result, true), | |
", got watch result: ", json_encode(watch_result, true), |
Sry for the mistake, we can use json_encode
instead of json_delay_encode
here. WDYT ?
Description
Thank you for your previous work @dyrnq
Create TWO threads to watch the catalog services and health services:
Fixes # (issue)
Reference: #8856, #8928
Checklist