wenweihu86 / raft-java

Raft Java implementation which is simple and easy to understand.
Apache License 2.0
1.18k stars 406 forks source link

I have one 8051 server, why I see channel is non active #26

Open gwnet opened 4 years ago

gwnet commented 4 years ago

... 2 more Exception in thread "main" com.baidu.brpc.exceptions.RpcException: com.baidu.brpc.exceptions.RpcException: channel is non active, retry another channel at com.baidu.brpc.client.BrpcProxy.intercept(BrpcProxy.java:276) at com.github.wenweihu86.raft.example.server.service.ExampleService$$EnhancerByCGLIB$$c1bbc38a.set() at com.github.wenweihu86.raft.example.client.ClientMain.main(ClientMain.java:36) Caused by: com.baidu.brpc.exceptions.RpcException: channel is non active, retry another channel at com.baidu.brpc.client.RpcClient.selectChannel(RpcClient.java:341) at com.baidu.brpc.interceptor.LoadBalanceInterceptor.selectChannel(LoadBalanceInterceptor.java:79) at com.baidu.brpc.interceptor.LoadBalanceInterceptor.invokeRpc(LoadBalanceInterceptor.java:73) at com.baidu.brpc.interceptor.LoadBalanceInterceptor.aroundProcess(LoadBalanceInterceptor.java:53) at com.baidu.brpc.interceptor.DefaultInterceptorChain.intercept(DefaultInterceptorChain.java:43) at com.baidu.brpc.interceptor.AbstractInterceptor.aroundProcess(AbstractInterceptor.java:35) at com.baidu.brpc.interceptor.ClientTraceInterceptor.aroundProcess(ClientTraceInterceptor.java:40) at com.baidu.brpc.interceptor.DefaultInterceptorChain.intercept(DefaultInterceptorChain.java:43) at com.baidu.brpc.client.BrpcProxy.intercept(BrpcProxy.java:265) ... 2 more Disconnected from the target VM, address: '127.0.0.1:54667', transport: 'socket'

wenweihu86 commented 4 years ago

@gwnet 这里是brpc-java负载均衡没有及时把重试过的实例剔除掉。后续会优化。