-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
nacos-client 2.1.0 erorr use endpoint configuration method #8882
Comments
你的地址服务( |
@KomachiSion |
@YunWZ 仔细读代码,客户端是根据是否有设置endpoint来读取不同列表的,有endpoint的时候只会使用 |
可以问下 @hujun-w-2 为什么要添加空列表判断 |
i will fix it |
@hujun-w-2 @KomachiSion 我认为这个[#8933]提交的代码有问题,并没有修复这个问题,提交的描述和代码逻辑不一致。 |
我看看 |
@tobeng 抱歉,已重新提交修复 |
好的,感谢处理。 |
nacos-client 2.1.0 版本使用 endpoint 配置方式报错
com.alibaba.nacos.client.NamingTest 测试代码:
提示错误:
查看 nacos-client 源码是在解决 [fix by zero error(#7724)] 问题在 com.alibaba.nacos.client.naming.core.ServerListManager 增加了代码:
但是使用 endpoint 方式是不会赋值给 serverList ,所以会报错,ServerListManager 对外提供获取 serverList 的方式是 getServerList() ,所以这里判断也应该通过 getServerList() 获取判断:
The text was updated successfully, but these errors were encountered: