use of org.apache.flink.runtime.messages.TaskManagerMessages.FatalError in project flink by apache.
the class TaskManagerTest method testTerminationOnFatalError.
@Test
public void testTerminationOnFatalError() {
new JavaTestKit(system) {
{
final ActorGateway taskManager = TestingUtils.createTaskManager(system, // no jobmanager
system.deadLetters(), new Configuration(), true, false);
try {
watch(taskManager.actor());
taskManager.tell(new FatalError("test fatal error", new Exception("something super bad")));
expectTerminated(d, taskManager.actor());
} finally {
taskManager.tell(Kill.getInstance());
}
}
};
}
Aggregations