Baoyuantop commented on issue #11144:
URL: https://github.com/apache/apisix/issues/11144#issuecomment-2914795261

   I'm using apisix-docker with 3.7.0 for testing:
   
   1. Start the project and configure routing
   ```
   cd example & docker-compose up -d
   ```
   ```
   {
     "uri": "/anything",
     "name": "apisix_test",
     "priority": 1,
     "methods": [
       "GET"
     ],
     "plugins": {},
     "upstream": {
       "nodes": [
         {
           "host": "httpbin.org",
           "port": 80,
           "weight": 1
         }
       ]
     }
   }
   ```
   Request the route can return normally.
   
   2. Deletes the etcd container and removes the corresponding volumn then 
restart etcd.
   3. Modify the routing configuration to configure the wrong port.
   ```
   {
     "uri": "/anything",
     "name": "apisix_test",
     "priority": 1,
     "methods": [
       "GET"
     ],
     "plugins": {},
     "upstream": {
       "nodes": [
         {
           "host": "httpbin.org",
           "port": 81,
           "weight": 1
         }
       ]
     }
   }
   ```
   
   Request the route reveals that it still returns normally.
   
   The data in etcd is up to date at this point:
   ```
   
{"upstream":{"type":"roundrobin","scheme":"http","hash_on":"vars","pass_host":"pass","nodes":[{"priority":0,"weight":1,"host":"httpbin.org","port":81}]},"update_time":1748402288,"priority":1,"methods":["PUT","DELETE","PATCH","HEAD","OPTIONS","GET","POST"],"create_time":1748402288,"plugins":{},"uri":"/anything","status":1,"name":"apisix_test","id":"1"}
   ```
   
   Requesting the control api reveals that the data in apisix is still old.


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