go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.41k stars 4.01k forks source link

feat(resolver/discovery): expose create watcher timeout error #3392

Closed ThereWeGo closed 3 months ago

ThereWeGo commented 3 months ago

Description (what this PR does / why we need it):

使用etcd 服务发现, 当etcd leader 意外终止时, grpc resolver 将无法获取目标服务endpoint, 导致服务调用失败. 暴露这个错误可以使用户获得一定的兜底能力, 且不影响框架的功能及完整性. 用户更为无感的处理上述bug, 需要进一步修复.

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers: