-
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
bug: discovery/dns cause panic #8554
Comments
When I use nodes directly rather than dns service_name, it works as expected. So I think this might be a bug of discovery/dns stream_routes:
- server_port: 10000
upstream:
nodes:
"1.2.3.4:8081": 1
type: roundrobin And the dns server is healthy, I can use nslookup to check:
|
because of dns service discovery didn't support in the stream subsystem yet, so it will cause error like below.
|
@caibirdme Hi, as PR #8593 is merged, you can pull master branch in your development environment and try dns service discovery in the stream subsystem. |
@ronething Thx, is this feature included in any releases? |
maybe in version 3.2.0 #8988 |
fixed by #8593 |
Current Behavior
Expected Behavior
proxy request to desired k8s service
Error Logs
2022-12-22T15:07:02.512209987Z 2022/12/22 23:07:02 [error] 56#56: *91098 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/discovery/dns/init.lua:32: attempt to index upvalue 'dns_client' (a nil value)
2022-12-22T15:07:02.512250920Z stack traceback:
2022-12-22T15:07:02.512256678Z coroutine 0:
2022-12-22T15:07:02.512259872Z /usr/local/apisix/apisix/discovery/dns/init.lua: in function 'nodes'
2022-12-22T15:07:02.512263539Z /usr/local/apisix/apisix/upstream.lua:259: in function 'set_upstream'
2022-12-22T15:07:02.512266986Z /usr/local/apisix/apisix/init.lua:959: in function 'stream_preread_phase'
2022-12-22T15:07:02.512270259Z preread_by_lua(nginx.conf:90):2: in main chunk while prereading client data, client: 9.166.233.109, server: 0.0.0.0:10000
Steps to Reproduce
as current behavior described
Environment
apisix version
): 2.15.1 (using helm chart v0.11.4)uname -a
): centos7openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
): no etcd, yamlluarocks --version
):The text was updated successfully, but these errors were encountered: