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

fix: The intermittent abnormality of etcd has caused registration failure #3464

Open
fltfh opened this issue Nov 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fltfh
Copy link

fltfh commented Nov 13, 2024

What happened:

etcd 短时间内出现两次异常后,部分服务没有注册到etcd中。复现发现代码中只重试了一次(配置最大5次),然后就退出了。

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

kratos

Anything else we need to know?:

复现方式:
部署三节点etcd集群,在其中两台机器上, 通过iptables, 5秒禁用2379,2380端口,然后5秒开启。 就会出现未到最大重试次数,就退出。

Environment:

  • Kratos version (use kratos -v):
  • Go version (use go version):
  • OS (e.g: cat /etc/os-release):
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant