@Override public void tryHandleCheckpointException(CheckpointMetaData checkpointMetaData, Exception exception) { try { synchronousCheckpointExceptionHandler.tryHandleCheckpointException(checkpointMetaData, exception); } catch (Exception unhandled) { AsynchronousException asyncException = new AsynchronousException(unhandled); owner.handleAsyncException("Failure in asynchronous checkpoint materialization", asyncException); } } }
return null; }).when(mockTask).handleAsyncException(any(String.class), any(Throwable.class));
streamTask.triggerCheckpoint(checkpointMetaData, CheckpointOptions.forCheckpointWithDefaultLocation()); verify(streamTask).handleAsyncException(anyString(), any(Throwable.class));
@Override public void tryHandleCheckpointException(CheckpointMetaData checkpointMetaData, Exception exception) { try { synchronousCheckpointExceptionHandler.tryHandleCheckpointException(checkpointMetaData, exception); } catch (Exception unhandled) { AsynchronousException asyncException = new AsynchronousException(unhandled); owner.handleAsyncException("Failure in asynchronous checkpoint materialization", asyncException); } } }
@Override public void tryHandleCheckpointException(CheckpointMetaData checkpointMetaData, Exception exception) { try { synchronousCheckpointExceptionHandler.tryHandleCheckpointException(checkpointMetaData, exception); } catch (Exception unhandled) { AsynchronousException asyncException = new AsynchronousException(unhandled); owner.handleAsyncException("Failure in asynchronous checkpoint materialization", asyncException); } } }