tzssangglass commented on issue #7522:
URL: https://github.com/apache/apisix/issues/7522#issuecomment-1192591289

   I can't reproduce your error on 2.13.2.
   
   My reproduction steps.
   
   1. route
   
   ```
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
     "uri":"/index*",
     "upstream":{
         "type":"roundrobin",
         "nodes":{
             "127.0.0.1:80":1
         }
     }
   }'
   ```
   
   upstream is an openresty server
   
   2. config.yaml
   
   ```yaml
   apisix:
     admin_key:
       - name: admin
         key: edd1c9f034335f136f87ad84b625c8f1
         role: admin
   
   plugins:
     - log-rotate
   
   plugin_attr:
     log-rotate:
       interval: 7200
       max_kept: 24
       enable_compression: false
   ```
   
   3. test
   
   ```shell
   
   $ apisix stop
   
   $ apisix start
   
   $ curl localhost:9080/index.html -i
   HTTP/1.1 200 OK
   Content-Type: text/html; charset=utf-8
   Content-Length: 1097
   Connection: keep-alive
   Date: Fri, 22 Jul 2022 13:42:02 GMT
   Last-Modified: Tue, 21 Jun 2022 06:43:30 GMT
   ETag: "62b16892-449"
   Accept-Ranges: bytes
   Server: APISIX/2.13.2
   ```
   
   4. comment plugins
   
   ```yaml
   apisix:
     admin_key:
       - name: admin
         key: edd1c9f034335f136f87ad84b625c8f1
         role: admin
   
   #plugins:
   # - log-rotate
   
   plugin_attr:
     log-rotate:
       interval: 7200
       max_kept: 24
       enable_compression: false
   ```
   
   5. test again
   
   ```shell
   
   $ apisix stop
   
   $ apisix start
   
   $ curl localhost:9080/index.html -i
   HTTP/1.1 200 OK
   Content-Type: text/html; charset=utf-8
   Content-Length: 1097
   Connection: keep-alive
   Date: Fri, 22 Jul 2022 13:42:02 GMT
   Last-Modified: Tue, 21 Jun 2022 06:43:30 GMT
   ETag: "62b16892-449"
   Accept-Ranges: bytes
   Server: APISIX/2.13.2
   ```
   
   step 2~5, I tried repeatedly several times and could not reproduce it.


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to