Ben0625 commented on issue #4077:
URL: https://github.com/apache/apisix/issues/4077#issuecomment-823049058
> @Ben0625 Could you try the `2.5` version? And test it whether it can be
reproduced in `2.5`?
I tried the 2.5 version and it can be reproduced. Let me provide more
details.
Step 1. Set a route with two upstreams(/test.do) and healthcheck active
configuration(/check.do) through dashboard.
Step 2. Send a request to trigger creating new checker. By looking at the
log output before and after to_set() function:
> defaults.checks.passive.unhealthy.http_statuses before to_set() function:
{
1 = 429,
2 = 500,
3 = 503,
}
defaults.checks.passive.unhealthy.http_statuses after to_set() function:
{
429 = true,
500 = true,
503 = true,
}
Step 3. Edit the same route on dashboard and do not change any configuration
and commit.
Step 4. Send a request to trigger creating new checker. By looking at the
log output before and after to_set() function:
> defaults.checks.passive.unhealthy.http_statuses before to_set() function:
{
429 = true,
500 = true,
503 = true,
}
defaults.checks.passive.unhealthy.http_statuses after to_set() function:
{
}
The configuration in etcd(/apisix/routes/350659784246034728):
{"id":"350659784246034728","create_time":1618539118,"update_time":1618902032,"uris":["/test.do"],"name":"test","methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS","PATCH"],"vars":[],"upstream":{"nodes":[{"host":"172.25.69.182","port":8080,"weight":1},{"host":"172.25.70.116","port":8080,"weight":1}],"timeout":{"connect":6000,"read":6000,"send":6000},"type":"roundrobin","checks":{"active":{"healthy":{"interval":100,"successes":4},"host":"aaa.com","http_path":"/check.do","timeout":3,"unhealthy":{"http_failures":5,"interval":3}}}}}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]