apache / apisix-java-plugin-runner

APISIX Plugin Runner in Java
https://apisix.apache.org/
Apache License 2.0
132 stars 97 forks source link

init.lua:726: phase_func(): failed to acquire the lock: timeoutrequest help: #138help request: #139

Open jiuchongxiao opened 2 years ago

jiuchongxiao commented 2 years ago

Description

Issue description java-plugin demofilter,cannot exec success.

2022/04/20 03:54:56 [error] 44#44: 12875 [lua] init.lua:726: phasefunc(): failed to acquire the lock: timeout, client: 10.233.64.0, server: , request: "GET /test HTTP/1.1", host: "10.27.163.82:8898" 2022/04/20 03:54:56 [warn] 44#44: 12875 [lua] plugin.lua:750: runplugin(): ext-plugin-pre-req exits with http status code 503, client: 10.233.64.0, server: , request: "GET /test HTTP/1.1", host: "10.27.163.82:8898"

Environment image

配置stream curl "http://10.27.163.82:8897/apisix/admin/upstreams/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '{ "type": "roundrobin","nodes": {"172.24.164.113:8099": 1}}'

配置路由

curl "http://10.27.163.82:8897/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d ' { "uri": "/test", "upstream_id": "1", "plugins": { "ext-plugin-pre-req": { "conf": [ { "name": "DemoFilter", "value": "config" } ] } } }'

Environment

jiuchongxiao commented 2 years ago

image but the java runner is run.

tzssangglass commented 2 years ago

image but the java runner is run.

Did you perform breakpoint debugging on java runner?

BTW, use test better than picture.

tzssangglass commented 2 years ago

2022/04/20 03:54:56 [error] 44#44: *12875 [lua] init.lua:726: phasefunc(): failed to acquire the lock: timeout, client: 10.233.64.0, server: , request: "GET /test HTTP/1.1", host: "10.27.163.82:8898"

I noticed this anomaly.

You need to provide a more complete reproduction of the steps. Include the APISIX configuration, Java code, what you did so that I can reproduce it.

tzssangglass commented 2 years ago

Too long inactivity and shut down.