You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private <V> void internalCallAsyncWithRpc(final Endpoint endpoint, final BaseRequest request,
final FailoverClosure<V> closure) {
final InvokeContext invokeCtx = new InvokeContext();
invokeCtx.put(BoltRpcClient.BOLT_CTX, ExtSerializerSupports.getInvokeContext());
final InvokeCallback invokeCallback = new InvokeCallback() {
@Override
public void complete(final Object result, final Throwable err) {
if (err == null) {
final BaseResponse<?> response = (BaseResponse<?>) result;
if (response.isSuccess()) {
closure.setData(response.getValue());
closure.run(Status.OK());
} else {
closure.setError(response.getError());
closure.run(new Status(-1, "RPC failed with address: %s, response: %s", endpoint, response));
}
} else {
closure.failure(err);
}
}
@Override
public Executor executor() {
return rpcCallbackExecutor;
}
};
try {
this.rpcClient.invokeAsync(endpoint, request, invokeCtx, invokeCallback, this.rpcTimeoutMillis);
} catch (final Throwable t) {
closure.failure(t); //
}
}
com.alipay.remoting.exception.ConnectionClosedException: Connection closed when invoke with callback.The address is 172.168.0.64:8883
java.util.concurrent.ExecutionException: com.alipay.remoting.exception.ConnectionClosedException: Connection closed when invoke with callback.The address is 172.168.0.64:8883
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
com.alipay.sofa.jraft.rhea.client.DefaultRheaKVRpcService#internalCallAsyncWithRpc
com.alipay.remoting.exception.ConnectionClosedException: Connection closed when invoke with callback.The address is 172.168.0.64:8883
java.util.concurrent.ExecutionException: com.alipay.remoting.exception.ConnectionClosedException: Connection closed when invoke with callback.The address is 172.168.0.64:8883
Beta Was this translation helpful? Give feedback.
All reactions