use of org.apache.flink.runtime.executiongraph.AccessExecutionJobVertex in project flink by apache.
the class JobVertexTaskManagersHandlerTest method testJsonGeneration.
@Test
public void testJsonGeneration() throws Exception {
AccessExecutionJobVertex originalTask = ArchivedJobGenerationUtils.getTestTask();
AccessExecutionVertex originalSubtask = ArchivedJobGenerationUtils.getTestSubtask();
String json = JobVertexTaskManagersHandler.createVertexDetailsByTaskManagerJson(originalTask, ArchivedJobGenerationUtils.getTestJob().getJobID().toString(), null);
compareVertexTaskManagers(originalTask, originalSubtask, json);
}
use of org.apache.flink.runtime.executiongraph.AccessExecutionJobVertex in project flink by apache.
the class SubtaskExecutionAttemptAccumulatorsHandlerTest method testArchiver.
@Test
public void testArchiver() throws Exception {
JsonArchivist archivist = new SubtaskExecutionAttemptAccumulatorsHandler.SubtaskExecutionAttemptAccumulatorsJsonArchivist();
AccessExecutionGraph originalJob = ArchivedJobGenerationUtils.getTestJob();
AccessExecutionJobVertex originalTask = ArchivedJobGenerationUtils.getTestTask();
AccessExecution originalAttempt = ArchivedJobGenerationUtils.getTestAttempt();
Collection<ArchivedJson> archives = archivist.archiveJsonWithPath(originalJob);
Assert.assertEquals(1, archives.size());
ArchivedJson archive = archives.iterator().next();
Assert.assertEquals("/jobs/" + originalJob.getJobID() + "/vertices/" + originalTask.getJobVertexId() + "/subtasks/" + originalAttempt.getParallelSubtaskIndex() + "/attempts/" + originalAttempt.getAttemptNumber() + "/accumulators", archive.getPath());
compareAttemptAccumulators(originalAttempt, archive.getJson());
}
use of org.apache.flink.runtime.executiongraph.AccessExecutionJobVertex in project flink by apache.
the class SubtaskExecutionAttemptDetailsHandlerTest method testJsonGeneration.
@Test
public void testJsonGeneration() throws Exception {
AccessExecutionGraph originalJob = ArchivedJobGenerationUtils.getTestJob();
AccessExecutionJobVertex originalTask = ArchivedJobGenerationUtils.getTestTask();
AccessExecution originalAttempt = ArchivedJobGenerationUtils.getTestAttempt();
String json = SubtaskExecutionAttemptDetailsHandler.createAttemptDetailsJson(originalAttempt, originalJob.getJobID().toString(), originalTask.getJobVertexId().toString(), null);
compareAttemptDetails(originalAttempt, json);
}
use of org.apache.flink.runtime.executiongraph.AccessExecutionJobVertex in project flink by apache.
the class SubtasksAllAccumulatorsHandlerTest method testJsonGeneration.
@Test
public void testJsonGeneration() throws Exception {
AccessExecutionJobVertex originalTask = ArchivedJobGenerationUtils.getTestTask();
String json = SubtasksAllAccumulatorsHandler.createSubtasksAccumulatorsJson(originalTask);
compareSubtaskAccumulators(originalTask, json);
}
use of org.apache.flink.runtime.executiongraph.AccessExecutionJobVertex in project flink by apache.
the class SubtasksTimesHandlerTest method testJsonGeneration.
@Test
public void testJsonGeneration() throws Exception {
AccessExecutionJobVertex originalTask = ArchivedJobGenerationUtils.getTestTask();
AccessExecution originalAttempt = ArchivedJobGenerationUtils.getTestAttempt();
String json = SubtasksTimesHandler.createSubtaskTimesJson(originalTask);
compareSubtaskTimes(originalTask, originalAttempt, json);
}
Aggregations