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

server状态变更client无法感知 #820

Closed
275861756 opened this issue Sep 27, 2023 · 1 comment
Closed

server状态变更client无法感知 #820

275861756 opened this issue Sep 27, 2023 · 1 comment

Comments

@275861756
Copy link

option := client.DefaultOption
option.Heartbeat = true
option.HeartbeatInterval = time.Second
d, _ := cclient.NewZookeeperDiscovery(*basePath, "Arith", []string{*zkAddr}, nil)
xclient := client.NewXClient("Arith", client.Failover, client.RandomSelect, d, option)
defer xclient.Close()

客户端启动后, 修改注册中心某个服务的 state为inactive后仍能一直受到请求。粗略看了代码,修改后,是没有重新加载注册中心的元数据的。
github.com/rpcxio/libkv v0.5.1 // indirect
github.com/rpcxio/rpcx-zookeeper v0.0.0-20220730061732-d20531677676 // indirect
github.com/smallnest/rpcx v1.8.11
image

@smallnest
Copy link
Owner

rpcx-ui废弃了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants