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
2.0.1 client 关闭异常 #5842
Comments
注销失败应该只是报错一下, 实际上连接断开的时候,nacos-server会自动注销。 从日志来看,似乎是先调用了关闭连接,然后才触发spring的shutdown hook。 |
这里同样的问题,虽然不影响功能,但是打印许多 error ,可能会影响服务告警 环境:
|
@EarthChen 麻烦问一下,这个问题有解决吗 |
没有 不过影响不大,服务是可以正常下线的 |
嗯,我这边跟你是一样的问题,也是告警很烦 |
我这边只是测试了一下 等修好再更新 client 把 目前还使用的是老版 |
意思是老版本的客户端没这个问题? |
老版本走的不睡是grpc 的 http 长轮询 |
您现在是哪个版本? |
1.x版本,我用的1.4.1没有这个问题 |
看了2.0.1的源码. RpcClient:390行, 在启动的时候注册了一个shutdownhook执行RpcClient.this.shutdown(), 进程关闭的时先触发的这个逻辑关闭了client, 其它bean在执行生命周期的关闭方法时去注销服务. 这时rpcClient已经关闭了. |
We will fix it in the next release. |
环境:
2.0.1 nacos-server
2.0.1 nacos-client
现象:
异常如下, grpc客户端在注销服务,取消订阅之前关闭了,导致注销失败,请问是bug吗,如果不是请问是哪里配置有问题吗?
The text was updated successfully, but these errors were encountered: