Search in sources :

Example 1 with JobExceptionsInfo

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);
}
Also used : JobExceptionsInfo(org.apache.flink.runtime.rest.messages.JobExceptionsInfo) EmptyRequestBody(org.apache.flink.runtime.rest.messages.EmptyRequestBody)

Aggregations

EmptyRequestBody (org.apache.flink.runtime.rest.messages.EmptyRequestBody)1 JobExceptionsInfo (org.apache.flink.runtime.rest.messages.JobExceptionsInfo)1