Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

zk域名解析后的ip更改后hangout无法切换 #140

Open
taolei0108 opened this issue May 30, 2019 · 4 comments
Open

zk域名解析后的ip更改后hangout无法切换 #140

taolei0108 opened this issue May 30, 2019 · 4 comments

Comments

@taolei0108
Copy link

taolei0108 commented May 30, 2019

hangout的配置文件里写的zk列表是zk的域名,当我域名解析到另一个ip时,hangour无法自动切换依旧连接之前的解析ip,具体报错如下图,只能重启服务才能进行正确的域名解析。
image
我猜测是hangout在jvm保存了一个初始解析完后的IP,后续不会再更新。
想请问如何才能让hangout进行request timeout后,进行重新域名解析,谢谢了

@taolei0108 taolei0108 changed the title kafka zk域名解析后的ip更改后hangout无法切换 May 30, 2019
@childe
Copy link
Owner

childe commented May 30, 2019

这个可能是JVM DNS缓存的问题吧, 参考下 https://www.rgagnon.com/javadetails/java-0445.html

@taolei0108
Copy link
Author

我试了,加了networkaddress.cache.ttl 这参数到java.security文件里,发现没起作用,hangout始终还是报上面的这个错误。

@childe
Copy link
Owner

childe commented May 30, 2019

搜索了一下, ZK应该某些版本有问题, 就算是BUG吧. https://issues.apache.org/jira/browse/ZOOKEEPER-2982

@gnuhpc
Copy link
Collaborator

gnuhpc commented Nov 19, 2019

@taolei0108 你帮我看一下你hangout使用的zk client jar是哪个版本?

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

No branches or pull requests

3 participants