idea直接运行poc能成功执行。打包成jar后就报错。看错误是因为grpc没建立连接,而idea中运行的grpc状态为READY。
[main] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - Creating new channel to: 192.168.1.144:7848.
[main] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 192.168.1.144:7848 is in state: CONNECTING.
[grpc-nio-worker-ELG-1-2] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 192.168.1.144:7848 is in state: TRANSIENT_FAILURE.
[grpc-nio-worker-ELG-1-2] WARN com.alipay.sofa.jraft.rpc.impl.GrpcClient - There has been some transient failure on this channel 192.168.1.144:7848.
[main] ERROR com.alipay.sofa.jraft.rpc.impl.AbstractClientService - Fail to connect 192.168.1.144:7848, remoting exception: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNKNOWN.