shuaijinchao commented on issue #4077:
URL: https://github.com/apache/apisix/issues/4077#issuecomment-966184678


   > > @Ben0625 Could you try the `2.5` version? And test it whether it can be 
reproduced in `2.5`?
   > 
   > I tried the Apisix 2.5 version but not use the dashboard 2.5 version. I 
just connect to the same etcd 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}}}}}
   
   -------------------------
   
   Following the steps you provided, I tested it through the CLI and Dashboard 
in the APISIX2.8 version, and this problem was not reproduced.
   
   
![image](https://user-images.githubusercontent.com/8529452/141281871-dd738d26-d04c-4cd7-bfec-8a2ec471793a.png)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to