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
Nacos 2.0.4 Cluster mode When Skywalking Agent is used, services cannot be registered #8275
Comments
The first time I submitted it, my PR was stuck. Could you give me some help |
帮顶 |
…rs$InterceptorChannel cannot be cast to io.grpc.ManagedChannel
Hello, @ZhengBing520 |
|
hello, @Oliverwqcwrw |
I am trying to reproduce this problem. If it does, I will see if your PR solves the problem |
Thanks for you |
I have reproduced the problem and verified your PR, it is a good discovery. Thank you for your contribution to the community. It will be merged after @shiyiyue1102 review passed |
Sorry, My misoperation |
Thanks for you. This is the first issue I opened, I am not familiar with the process |
It doesn't matter. You can talk about any problems. The community is very friendly |
…rs$InterceptorChannel cannot be cast to io.grpc.ManagedChannel
…rs$InterceptorChannel cannot be cast to io.grpc.ManagedChannel
…rceptorChannel cannot be cast to io.grpc.ManagedChannel (#8374)
Describe the bug
Nacos 2.0.4 Cluster mode When Skywalking Agent is used, services cannot be registered
nacos.logoutput error log: java.lang.ClassCastException: io.grpc.ClientInterceptors$InterceptorChannel cannot be cast to io.grpc.ManagedChannel
cause:
Expected behavior
Normal Running .
Acutally behavior
Demo registration and communication are affected. Services can be found from the service list in the Nacos console, but an error is reported when editing the service
(影响demo注册和通信,可以从nacos控制台的服务列表中发现服务,但是编辑服务时报错,报错位置如下)
ServiceManager#updateInstance -> throw new NacosException(NacosException.INVALID_PARAM, "instance not exist: " + instance);
This indicates that the instance was not registered successfully
How to Reproduce
Steps to reproduce the behavior:
java.lang.ClassCastException: io.grpc.ClientInterceptors$InterceptorChannel cannot be cast to io.grpc.ManagedChannel
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:281)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:522)
at com.alibaba.nacos.common.remote.client.RpcClient.lambda$start$2(RpcClient.java:370)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2022-04-28 12:58:42,189 INFO [Cluster-192.168.90.75:8868] Fail to connect server, after trying 315 times, last try server is {serverIp = '192.168.90.75', server main port = 8868}, error = unknown
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: