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

动态路由和负载均衡未过滤异常节点 #59

Open
ArgusFromCG2023 opened this issue Sep 15, 2023 · 0 comments
Open

动态路由和负载均衡未过滤异常节点 #59

ArgusFromCG2023 opened this issue Sep 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ArgusFromCG2023
Copy link

Describe the bug
节点异常关闭没有调用deRegister时,动态路由和负载均衡未过滤异常节点,导致访问出错

To Reproduce
按照 https://github.com/polarismesh/grpc-go-polaris/blob/main/examples/routing/README.md 中的流程启动三个provider和consumer之后,通过curl调用,正常返回结果
此时kill掉其中一个provider,之后多次curl调用发现会请求到已经被kill的异常节点(console后台状态显示为异常)

Expected behavior
希望官方可以修复此Bug

Environment

  • Version: [v1.4.0]
  • OS: [windows11]

Additional context
通过对balancer.go文件添加日志发现
pnp.balancer.routerAPI.ProcessRouters(request)
pnp.balancer.routerAPI.ProcessLoadBalance(lbReq)
这两个调用都没有过滤掉异常节点

@ArgusFromCG2023 ArgusFromCG2023 added the bug Something isn't working label Sep 15, 2023
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