@Override public void handleCheckedException(Exception e) { LOGGER.error(errorUtils.getStackTrace(e)); } }
@Override public void onError(Throwable throwable) { finishLatch.countDown(); this.throwable = errorUtils.toGrpcRuntimeException(throwable); this.LOGGER.info("{} source streaming error: {}", this.classSimpleName, errorUtils.getStackTrace(this.throwable)); }
public void errorCallerStreamingRpc(Throwable t) { requestObserver.onError(errorUtils.toGrpcRuntimeException(t)); }
public void completeStreamingRpc() { streamProcessor.complete(); if (!(streamProcessor instanceof BaseStreamProcessor)) { try { requestObserver.onCompleted(); } catch (IllegalStateException e) { LOGGER.error(errorUtils.toGrpcRuntimeException(e)); } } grpcAsyncClientContext.awaitFinish(finishLatch, grpcAsyncClientContext.getFinishTimeout(), grpcAsyncClientContext.getFinishTimeoutUnit(), grpcAsyncClientContext.getExceptionHandler()); }
@Override public void onFailure(Throwable throwable) { LOGGER.error("[FEDERATION][SCHEDULER] processor failed: transferMetaId: {}, exception: {}", transferMetaId, errorUtils.getStackTrace(throwable)); countDownLatch.countDown(); }
@Override public void onError(Throwable throwable) { this.throwable = errorUtils.toGrpcRuntimeException(throwable); for (StreamObserver streamObserver : errorListeners) { if (streamObserver != null) { streamObserver.onError(throwable); } } callerNotifier.onError(this.throwable); LOGGER.debug("{} dest streaming error: {}", this.classSimpleName, errorUtils.getStackTrace(throwable)); }
public <T> void processCrudRequestInternal(BasicMeta.CallRequest request, StreamObserver response, CrudServerProcessor<T> crudServerProcessor) { BasicMeta.CallResponse result = null; try { paramValidationHelper.validate(request); BasicMeta.Data requestData = request.getParam(); Object record = byteStringSerDesHelper.deserialize(requestData.getData(), Class.forName(requestData.getType())); T callResult = (T) crudServerProcessor.process(record); if (crudServerProcessor.isValid(callResult)) { result = callMetaModelFactory.createNormalCallResponse(crudServerProcessor.pickResult(record, callResult)); } else { result = callMetaModelFactory.createErrorCallResponse( 102, "Failed to perform" + recordClass.getSimpleName() + " crud operation in database", record); } response.onNext(result); response.onCompleted(); } catch (Exception e) { response.onError(errorUtils.toGrpcRuntimeException(e)); } }
@Override public void onFailure(Throwable throwable) { LOGGER.error("[FEDERATION][RECV][CONSUMER][DTABLE] putAll failed for data: {}, error: {}", transferMetaId, errorUtils.getStackTrace(throwable)); putAllFinishLatch.countDown(); }
@Override public void onError(Throwable throwable) { Exception e = errorUtils.toGrpcRuntimeException(throwable); delayedResult.setError(e); delayedResult.getLatch().countDown(); LOGGER.error(errorUtils.getStackTrace(e)); }
@Override public void onFailure(Throwable ex) { LOGGER.warn("[ROLL][PROCESS][Count][Callback] {}:{}: error: {}", ip, port, errorUtils.getStackTrace(ex)); errorContainer.add(ex); finishLatch.countDown(); }
public <T> T wrapGrpcServerCallable(StreamObserver responseObserver, GrpcServerCallable<T> target) { T result = null; try { result = target.run(); } catch (Throwable t) { LOGGER.error(errorUtils.getStackTrace(t)); responseObserver.onError(errorUtils.toGrpcRuntimeException(t)); } return result; } }
@Override public void onFailure(Throwable ex) { LOGGER.error("[CALLBACK][ONFAILURE] {}:{}: error: {}", ip, port, errorUtils.getStackTrace(ex)); errorContainer.add(ex); finishLatch.countDown(); }
public void wrapGrpcServerRunnable(StreamObserver responseObserver, GrpcServerRunnable target) { try { target.run(); } catch (Throwable t) { LOGGER.error(errorUtils.getStackTrace(t)); responseObserver.onError(errorUtils.toGrpcRuntimeException(t)); } }
@Override public void onFailure(Throwable throwable) { LOGGER.fatal("[FEDERATION][MAIN][FATAL] job scheduler failed: {}", errorUtils.getStackTrace(throwable)); }
@Override public void onError(Throwable throwable) { super.onError(throwable); LOGGER.error("[ROLL][KV][PUTALL] put all onError: {}", errorUtils.getStackTrace(throwable)); }
@Override public void onFailure(Throwable throwable) { LOGGER.error("[ROLL][KV][PUTALL][ONFAILURE] storeInfo: {}, latch count: {}, {}:{}: error: {}", storeInfoWithFragment, finishLatch.getCount(), ip, port, errorUtils.getStackTrace(throwable)); errorContainer.add(throwable); finishedFragments.add(storeInfoWithFragment.getFragment()); finishLatch.countDown(); }
@Override public void onError(Throwable throwable) { LOGGER.error(errorUtils.getStackTrace(throwable)); super.onError(throwable); }
public void onError(Federation.TransferMeta transferMeta, int code, Throwable throwable) { onError(transferMeta, code, errorUtils.getStackTrace(throwable)); }
@Override public void onError(Throwable throwable) { LOGGER.info("[SEND][SERVER][OBSERVER] onError: {}", errorUtils.getStackTrace(throwable)); transferBroker.setError(throwable); super.onError(throwable); }
LOGGER.error(errorUtils.getStackTrace(e)); throw e;