azura27 opened a new issue #3193:
URL: https://github.com/apache/apisix/issues/3193


   ### Issue description
   When I test with WRK, 10 seconds flow would have one second error, and cause 
the QPS to decrease 1w
   For issue tracing:
   in function: common_phase(phase_name) ADD log: core.log.error("nil instance: 
api_ctx") after the "api_ctx = ngx.ctx.api_ctx"
   in function: http_log_phase()  ADD log:  core.log.error("fail to create 
healthcheck instance: ", err) after "api_ctx = common_phase("log")"
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0  (with changes from: 
https://github.com/apache/apisix/pull/2575/files)
   * OS: (cmd: `uname -a`)  Linux   3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 
21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
   * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`) 1.15.8.3
   
   ### Minimal test code / Steps to reproduce the issue
   1. run apisix with plugins open: zipkin, limit-count, 
prometheus,consumer-restriction,key-auth
   2. run test with wrk ./wrk -t 4 -d 10 -c 3000
   3. 
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   2021/01/05 13:51:25 [error] 5324#5324: *97919 [lua] init.lua:653: 
common_phase(): nil instance: api_ctx while logging request, client:  
   2021/01/05 13:51:25 [error] 5324#5324: *97919 [lua] init.lua:753: 
http_log_phase(): fail to create healthcheck instance: nil while logging 
request, client:  
   
   
   ### What's the expected result?
   no error log and higher QPS


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


Reply via email to