[ https://issues.apache.org/jira/browse/FLINK-8785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443562#comment-16443562 ]
ASF GitHub Bot commented on FLINK-8785: --------------------------------------- GitHub user buptljy opened a pull request: https://github.com/apache/flink/pull/5877 [FLINK-8785][Job-Submission]Handle JobSubmissionExceptions ## What is the purpose of the change We will get an "Internal server error" exception if we submit a jobgraph with a restclusterclient. This PR helps us get more details and causes of the exception, such as "The jobgraph is empty" message. ## Brief change log Add causes and details of an exception which happens in job submission. ## Verifying this change ## Does this pull request potentially affect one of the following parts: ## Documentation You can merge this pull request into a Git repository by running: $ git pull https://github.com/buptljy/flink 8785 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5877.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5877 ---- commit 443a3c0fda861cd5324083df93ed5080c2f9f476 Author: wind <bupt_ljy@...> Date: 2018-04-18T17:29:14Z add error messages ---- > JobSubmitHandler does not handle JobSubmissionExceptions > -------------------------------------------------------- > > Key: FLINK-8785 > URL: https://issues.apache.org/jira/browse/FLINK-8785 > Project: Flink > Issue Type: Bug > Components: Job-Submission, JobManager, REST > Affects Versions: 1.5.0 > Reporter: Chesnay Schepler > Assignee: buptljy > Priority: Critical > Labels: flip-6 > > If the job submission, i.e. {{DispatcherGateway#submitJob}} fails with a > {{JobSubmissionException}} the {{JobSubmissionHandler}} returns "Internal > server error" instead of signaling the failed job submission. > This can for example occur if the transmitted execution graph is faulty, as > tested by the \{{JobSubmissionFailsITCase}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005)