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

    https://github.com/apache/flink/pull/2313#discussion_r75123576
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/client/JobClient.java ---
    @@ -118,27 +138,168 @@ public static JobExecutionResult submitJobAndWait(
                        sysoutLogUpdates);
     
                ActorRef jobClientActor = 
actorSystem.actorOf(jobClientActorProps);
    -           
    +
    +           Future<Object> submissionFuture = Patterns.ask(
    +                           jobClientActor,
    +                           new 
JobClientMessages.SubmitJobAndWait(jobGraph),
    +                           new Timeout(AkkaUtils.INF_TIMEOUT()));
    --- End diff --
    
    That's not possible because the `JobClientActor` will complete this future 
with the result of the job execution which may be be infinitely delayed. In all 
other cases (i.e. timeout to register at jobmanager, failure to attach to job, 
failure to submit job), the `JobClientActor` will complete the future with a 
failure message.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to