You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/27 07:31:28 UTC

[GitHub] [apisix] nic-chen opened a new issue #2870: bug: update plugin config for route does not take effect

nic-chen opened a new issue #2870:
URL: https://github.com/apache/apisix/issues/2870


   ### Issue description
   
   Update the plugin config for route, and then access to the route, the plugin config is not updated.
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):  master source
   * OS: macOS
   
   ### Minimal test code / Steps to reproduce the issue
   1.  create route
   ```sh
   $ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/opentracing",
       "plugins": {
           "http-logger": {
               "uri": "http://172.16.238.20:1982/hello",
               "batch_max_size": 1,
               "max_retry_count": 1,
               "retry_delay": 2,
               "buffer_duration": 2,
               "inactive_timeout": 2,
               "name": "http logger",
               "timeout": 3,
               "concat_method": "json"
           }
       },
       "upstream": {
           "type": "roundrobin",
           "nodes": [{
               "host": "172.16.238.20",
               "port": 1981,
               "weight": 1
           }]
       }
   }'
   ```
   
   2. access the route
   ```sh
   $ curl http://127.0.0.1:9080/opentracing
   ```
   
   3. update the route
   ```sh
   $ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/opentracing",
       "plugins": {
           "http-logger": {
               "uri": "http://172.16.238.20:8888/hello",
               "batch_max_size": 1,
               "max_retry_count": 1,
               "retry_delay": 2,
               "buffer_duration": 2,
               "inactive_timeout": 2,
               "name": "http logger",
               "timeout": 3,
               "concat_method": "json"
           }
       },
       "upstream": {
           "type": "roundrobin",
           "nodes": [{
               "host": "172.16.238.20",
               "port": 1980,
               "weight": 1
           }]
       }
   }'
   ```
   
   4. access the route again
   ```sh
   $ curl http://127.0.0.1:9080/opentracing
   ```
   
   ### What's the actual result? (including assertion message & call stack if applicable)
   
   upstream has changed to `172.16.238.20:1980`
   
   but log is still pushed to `http://172.16.238.20:1982/hello`
   
   ### What's the expected result?
   
   log should push to `http://172.16.238.20:8888/hello`
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #2870: bug: update plugin config for route does not take effect

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #2870:
URL: https://github.com/apache/apisix/issues/2870#issuecomment-734796253






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] membphis closed issue #2870: bug: update plugin config for route does not take effect

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2870:
URL: https://github.com/apache/apisix/issues/2870


   


----------------------------------------------------------------
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:
users@infra.apache.org