Skip to content
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]当节点经过网关连入主框架时,PUSH配置文件存在问题,无法推送节点配置的内容 #880

Open
JanuarYJL opened this issue Mar 3, 2022 · 1 comment
Labels

Comments

@JanuarYJL
Copy link

What version of TARS and what language are you using?
TarsFramework-3.0.3

What operating system (Linux, Windows, ...) and version? [e.g. CentOS 7.8]
Linux&Windows

What runtime/compiler are you using? [e.g. JDK version or version of gcc]
docker

Describe the bug
在添加了服务配置和节点配置时(不启用set),PUSH配置文件给经过网关连接上来的节点(已设置nodeid,框架中显示的ip是实际ip)推送文件只会推送服务配置,不会合并节点配置的信息。具体原因是:
tars-bug-1
在getScriptFile函数中调用loadConfigByInfo时传入的配置参数是自己新建的对象,构建时只设置了部分信息,不包含host字段
tars-bug-2
后面取host时如果为空则取current->getHostName(),获取到的是连接的实际接入IP,也就是网关IP,而不是节点真实IP
tars-bug-3
在最后查库取节点配置时,用网关IP去查,无法获取真正的节点配置,导致推送的配置只有服务配置的内容,没有节点配置的内容。

getScriptFile函数中可以取到_desc.nodeName,这个能确保是实际的ip?用这个字段给host赋值传入是否可以?

To Reproduce

Expected behavior

Screenshots

Additional context

@JanuarYJL JanuarYJL added the bug label Mar 3, 2022
@JanuarYJL JanuarYJL changed the title [BUG]当节点经过网关连入主框架时,推送文件存在问题 [BUG]当节点经过网关连入主框架时,PUSH配置文件存在问题,无法推送节点配置的内容 Mar 3, 2022
@ruanshudong
Copy link
Contributor

目前是不支持节点通过网关接入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants