wfgydbu opened a new issue #2520:
URL: https://github.com/apache/apisix/issues/2520


   ### Issue description
   After initialized Apisix, and add one route at very first time. Found some 
errors in error.log described as following.
   
   I've reproduced these errors on two different machines in both version 1.4 
and 1.5. Apisix of version 1.2 seems work fine.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS:Centos 7.6
   
   ### Minimal test code / Steps to reproduce the issue
   1. A completed clean etcd server with v2 protool enabled.
   2. Setup Apisix v1.5(`make deps`). Run `make init`, then `make run`.
   3. Setup a route to forward everything:
   ```
   curl -i -X PUT http://127.0.0.1:9080/apisix/admin/routes/1 -d '
   {
       "uri": "/*",
       "methods": ["PUT", "GET", "POST", "DELETE", "PATCH", "HEAD", "OPTIONS", 
"CONNECT", "TRACE"],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:1980": 10
           }
       }
   }'
   ```
   4. Errors found in `logs/error.log`
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   in `error.log`:
   ```
   1232020/10/26 19:31:35 [error] 351885#351885: *169 [lua] 
config_etcd.lua:397: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to acquire the lock: timeout,  etcd key: 
/apisix/routes, context: ngx.timer
   2020/10/26 19:31:35 [error] 351881#351881: *132 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351871#351871: *353 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351876#351876: *348 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351880#351880: *153 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351891#351891: *438 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351874#351874: *483 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351890#351890: *498 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351887#351887: *251 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351863#351863: *399 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351878#351878: *79 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351889#351889: *198 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351886#351886: *468 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   2020/10/26 19:31:35 [error] 351875#351875: *199 [lua] config_etcd.lua:397: 
failed to fetch data from etcd: failed to check item data of [/apisix/routes] 
err:failed to acquire the lock: timeout,  etcd key: /apisix/routes, context: 
ngx.timer
   ```
   
   
   ### What's the expected result?
   Should be nothing in the log and routes work just fine.
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to