fapaul commented on a change in pull request #17995:
URL: https://github.com/apache/flink/pull/17995#discussion_r763011611



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/deployment/application/ApplicationDispatcherBootstrap.java
##########
@@ -159,6 +160,15 @@ public void stop() {
                         })
                 .exceptionally(
                         t -> {
+                            final Optional<JobStartupFailedException> 
jobStartupFailedOpt =
+                                    ExceptionUtils.findThrowable(
+                                            t, 
JobStartupFailedException.class);
+                            if (jobStartupFailedOpt.isPresent()) {
+                                final JobStartupFailedException error = 
jobStartupFailedOpt.get();
+                                dispatcherGateway.submitFailedJob(error);
+                                LOG.info("Application failed: ", error);

Review comment:
       I changed the line to: `Application failed during the conversation of 
the user program to a job graph` to give more details about the cause.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to