[ 
https://issues.apache.org/jira/browse/FLINK-13649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flink Jira Bot updated FLINK-13649:
-----------------------------------
    Priority: Minor  (was: Major)

> Improve error message when job submission was not successful
> ------------------------------------------------------------
>
>                 Key: FLINK-13649
>                 URL: https://issues.apache.org/jira/browse/FLINK-13649
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Web Frontend
>            Reporter: Timo Walther
>            Priority: Minor
>              Labels: auto-deprioritized-major
>
> When submitting a job jar in the web frontend, a user only gets "Internal 
> server error" when something went wrong.
> For example, submitting a batch job with {{ExecutionEnvironment env = 
> ExecutionEnvironment.createCollectionsEnvironment();}}.
> The logs show a better error message:
> {code}
> 2019-08-08 11:07:18,512 INFO  org.apache.flink.api.java.ExecutionEnvironment  
>               - The job has 0 registered types and 0 default Kryo serializers
> 2019-08-08 11:07:18,537 ERROR 
> org.apache.flink.runtime.webmonitor.handlers.JarRunHandler    - Unhandled 
> exception.
> org.apache.flink.client.program.ProgramInvocationException: The program plan 
> could not be fetched - the program aborted pre-maturely.
> System.err: (none)
> System.out: WC Hello 2
>       at 
> org.apache.flink.client.program.OptimizerPlanEnvironment.getOptimizedPlan(OptimizerPlanEnvironment.java:108)
>       at 
> org.apache.flink.client.program.PackagedProgramUtils.createJobGraph(PackagedProgramUtils.java:80)
>       at 
> org.apache.flink.runtime.webmonitor.handlers.utils.JarHandlerUtils$JarHandlerContext.toJobGraph(JarHandlerUtils.java:126)
>       at 
> org.apache.flink.runtime.webmonitor.handlers.JarRunHandler.lambda$getJobGraphAsync$6(JarRunHandler.java:142)
>       at 
> java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to