use of org.apache.flink.runtime.rest.messages.JobExceptionsInfo in project flink by apache.
the class JobExceptionsHandlerTest method checkExceptionLimit.
private static void checkExceptionLimit(JobExceptionsHandler jobExceptionsHandler, ExecutionGraphInfo graph, int maxNumExceptions, int numExpectedException) throws HandlerRequestException {
final HandlerRequest<EmptyRequestBody> handlerRequest = createRequest(graph.getJobId(), numExpectedException);
final JobExceptionsInfo jobExceptionsInfo = jobExceptionsHandler.handleRequest(handlerRequest, graph);
final int numReportedException = Math.min(maxNumExceptions, numExpectedException);
assertEquals(jobExceptionsInfo.getAllExceptions().size(), numReportedException);
}
Aggregations