-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request help: resty/lock.lua sleep API disabled in the context of balancer_by_lua* #2842
Comments
what is the apisix version? |
apisix 1.1 but make some customized changes but the main logic is the same with apisix 1.1 |
pls make a try with the latest version your version is too old |
ok i see |
spacewander
added a commit
to spacewander/incubator-apisix
that referenced
this issue
Jan 11, 2021
Allow to call yield function in the healthcheck. Signed-off-by: spacewander <spacewanderlzx@gmail.com> Co-authored-by: YuanSheng Wang <membphis@gmail.com> Fix apache#1851 Fix apache#2842 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
spacewander
added a commit
to spacewander/incubator-apisix
that referenced
this issue
Jan 11, 2021
Allow to call yield function in the healthcheck. Signed-off-by: spacewander <spacewanderlzx@gmail.com> Co-authored-by: YuanSheng Wang <membphis@gmail.com> Fix apache#1851 Fix apache#2842 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
sysulq
pushed a commit
to sysulq/apisix
that referenced
this issue
Jan 15, 2021
Allow to call yield function in the healthcheck. Signed-off-by: spacewander <spacewanderlzx@gmail.com> Co-authored-by: YuanSheng Wang <membphis@gmail.com> Fix apache#1851 Fix apache#2842
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
2020/11/25 10:14:54 [error] 91#91: 851285 connect() failed (111: Connection refused) while connecting to upstream, client: 172.3
0.42.212, server: , request: "GET /xxx?method=testxxxx HTTP/1.1", upstream: "http:///test?method=testxxx
x", host: "gateway-lxrel.internetofcity.cn"
2020/11/25 11:07:57 [error] 88#88: 3602906 failed to run balancer_by_lua: /usr/local/apisix//deps/share/lua/5.1/resty/lock.lua:
153: API disabled in the context of balancer_by_lua
stack traceback:
[C]: in function 'sleep'
/usr/local/apisix//deps/share/lua/5.1/resty/lock.lua:153: in function 'lock'
/usr/local/apisix//deps/share/lua/5.1/resty/healthcheck.lua:207: in function 'locking_target_list'
/usr/local/apisix//deps/share/lua/5.1/resty/healthcheck.lua:268: in function 'add_target'
/usr/local/apisix/lua/apisix/balancer.lua:86: in function 'create_obj_fun'
/usr/local/apisix/lua/apisix/core/lrucache.lua:171: in function 'lrucache_checker'
/usr/local/apisix/lua/apisix/balancer.lua:119: in function 'fetch_healthchecker'
/usr/local/apisix/lua/apisix/balancer.lua:245: in function 'pick_server'
/usr/local/apisix/lua/apisix/balancer.lua:315: in function 'load_balancer'
/usr/local/apisix/lua/apisix.lua:645: in function 'http_balancer_phase'
balancer_by_lua:2: in main chunk while connecting to upstream, client: *****, server: , request: "*****"
Environment
apisix version
):The text was updated successfully, but these errors were encountered: