[ https://issues.apache.org/jira/browse/FLINK-9732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549450#comment-16549450 ]
vinoyang edited comment on FLINK-9732 at 7/19/18 3:52 PM: ---------------------------------------------------------- Hi [~Zentol] a little question, if the code "Job submission failed." at [this line|[https://github.com/apache/flink/blob/0cb7706dad74133652983a132d70ba4ded4aff9b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobSubmitHandler.java#L112]] is replaced with : {code:java} exception.getMessage() {code} seems can get more information? was (Author: yanghua): Hi [~Zentol] a little question, if the code "Job submission failed." at [this line| https://github.com/apache/flink/blob/0cb7706dad74133652983a132d70ba4ded4aff9b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobSubmitHandler.java#L112 ] is replaced with : {code:java} exception.getMessage() {code} seems can get more information? > Report more detailed error message on JobSubmissionFailure > ---------------------------------------------------------- > > Key: FLINK-9732 > URL: https://issues.apache.org/jira/browse/FLINK-9732 > Project: Flink > Issue Type: Improvement > Components: REST > Affects Versions: 1.5.0, 1.6.0 > Reporter: Chesnay Schepler > Assignee: vinoyang > Priority: Major > > Currently, if the job submission through the {{JobSubmitHandler}} fails the > error message returned tot he client only says "Job submission failed.". > As outlined in the discussion in this > [PR|https://github.com/apache/flink/pull/6222] we should try to include more > information about the actual failure cause. > The proposed solution is to encode the cause for the failure in the > {{Acknowledge}} that is returned by {{DispatcherGateway#submitJob}}. > {code} > public class AckOrException { > // holds exception, could also be a series of nullable fields > private final SuperEither<ExceptionA, ExceptionB, ExceptionC> > exception; > ... > public void throwIfError() throws ExceptionA, ExceptionB, ExceptionC; > } > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)