You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/03/20 10:35:00 UTC

[jira] [Comment Edited] (FLINK-8785) JobSubmitHandler does not handle JobSubmissionExceptions

    [ https://issues.apache.org/jira/browse/FLINK-8785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406048#comment-16406048 ] 

Chesnay Schepler edited comment on FLINK-8785 at 3/20/18 10:34 AM:
-------------------------------------------------------------------

You can reproduce this by starting a flip6 cluster (you can use {{MiniCluster}} in the IDE) and submitting a job using the {{RestClusterClient}}. (See {{MiniClusterResource}} on how to set these up)

I went through all cases where we explicitly return an internal server error (by searching for the string), and those are all intended as they truly only occur on internal errors. Handlers are allowed to throw internal server errors, but must do so explicitly.


was (Author: zentol):
The {{JobSubmissionFailsITCase}} has not been ported to flip6 on the master yet (which we can't since it doesn't work yet).

You can reproduce this by starting a flip6 cluster (you can use {{MiniCluster}} in the IDE) and submitting a job using the {{RestClusterClient}}. (See {{MiniClusterResource}} on how to set these up)

I went through all cases where we explicitly return an internal server error (by searching for the string), and those are all intended as they truly only occur on internal errors. Handlers are allowed to throw internal server errors, but must do so explicitly.

> 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
>            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)