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

[config] 在nacos故障场景下,client 无法初始化,降级本地配置失败 #564

Closed
wangdongyun opened this issue Jan 31, 2023 · 1 comment
Assignees
Labels
2.0.0 bug Something isn't working enhancement New feature or request

Comments

@wangdongyun
Copy link
Contributor

wangdongyun commented Jan 31, 2023

如何复现?

  1. nacos 开启鉴权
  2. 断开与nacos的网络
  3. 启动报错
  4. 报错信息

_panic: Post "http://x.x.x.x:8848/nacos/v1/auth/users/login": dial tcp 10.18.1.4:8848: i/o timeout (Client.Timeout exceeded while awaiting headers)
_

与 nacos-java-sdk 行为不一致

登录失败后,直接返回error,导致 无法执行后续流程,进而 无法降级到本地配置

nacos-java-sdk的做法

nacos 远程故障,不会抛出异常,自动降级到本地磁盘

@wangdongyun
Copy link
Contributor Author

这个看一下是否可以,然后我提交下pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0.0 bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants