-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
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 change: added doc of how to load plugin. #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux - OpenResty / Nginx version: (cmd:
nginx -V
oropenresty -V
) 1.15.8.3
Minimal test code / Steps to reproduce the issue
- run apisix with plugins open: zipkin, limit-count, prometheus,consumer-restriction,key-auth
- run test with wrk ./wrk -t 4 -d 10 -c 3000
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
Metadata
Metadata
Assignees
Labels
No labels