Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2974#discussion_r97354396
  
    --- Diff: 
flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
 ---
    @@ -1074,6 +1080,79 @@ protected void run() {
                }};
        }
     
    +   @Test
    +   public void testLogNotFoundHandling() throws Exception {
    +
    +           new JavaTestKit(system){{
    +
    +                   ActorGateway jobManager = null;
    +                   ActorGateway taskManager = null;
    +
    +                   final ActorGateway testActorGateway = new 
AkkaActorGateway(
    +                           getTestActor(),
    +                           leaderSessionID);
    +
    +                   try {
    +                           final IntermediateDataSetID resultId = new 
IntermediateDataSetID();
    +
    +                           // Create the JM
    +                           ActorRef jm = system.actorOf(Props.create(
    +                                   new 
SimplePartitionStateLookupJobManagerCreator(leaderSessionID, getTestActor())));
    +
    +                           jobManager = new AkkaActorGateway(jm, 
leaderSessionID);
    +
    +                           final int dataPort = 
NetUtils.getAvailablePort();
    +                           Configuration config = new Configuration();
    +                           
config.setInteger(ConfigConstants.TASK_MANAGER_DATA_PORT_KEY, dataPort);
    +                           
config.setInteger(TaskManagerOptions.NETWORK_REQUEST_BACKOFF_INITIAL, 100);
    +                           
config.setInteger(TaskManagerOptions.NETWORK_REQUEST_BACKOFF_MAX, 200);
    +                           
config.setString(ConfigConstants.TASK_MANAGER_LOG_PATH_KEY, "/i/dont/exist");
    +
    +                           taskManager = TestingUtils.createTaskManager(
    +                                   system,
    +                                   jobManager,
    --- End diff --
    
    Without a JobManager no BlobService is started. This means the TM would 
fail earlier then we want him to.
    
    While trying it out i found another exception that should be wrapped though 
:>


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to