crazyMonkey1995 opened a new issue, #7489:
URL: https://github.com/apache/apisix/issues/7489

   ### Current Behavior
   
   The kubernetes discovery that the status code of 410 Gone was not processed 
in the list stage, so that the continue parameter could never be updated, and 
the list would continue to fail (returning to 410 Gone, an infinite loop)
   
![image](https://user-images.githubusercontent.com/21658981/179661612-8456770a-2bc7-4f87-9519-40f45135e215.png)
   
   
   ### Expected Behavior
   
   When apiserver returns 410 Gone, update the continue parameter of the 
request instead of failing directly.
   
   ### Error Logs
   
   2022/07/18 11:25:49 [error] 390#390: *32338366 [lua] 
informer_factory.lua:292: list failed, kind: Endpoints, reason: Gone, message : 
{"kind":"Status","apiVersion":"v1","metadata":{"continue":"eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6LTEsInN0YXJ0IjoiM2Q4OWZlZTQwOTdjYzVhMzVjMDk0MDVmODJjOWNkOTA5NzQ4YTU5Ni1wcm8tcHJvL2htYVx1MDAwMCJ9"},"status":"Failure","message":"The
 provided continue parameter is too old to display a consistent list result. 
You can start a new list without the continue parameter, or use the continue 
token in this response to retrieve the remainder of the results. Continuing 
with the provided token results in an inconsistent list - objects that were 
created, modified, or deleted between the time the first chunk was returned and 
now may show up in the list.","reason":"Expired","code":410}
   
   ### Steps to Reproduce
   
   kubernetes discovery list stage occur ocasionally.
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.14.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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