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

Jose Luis Lopez Pino commented on FLINK-989:
--------------------------------------------

I think this also applies to some other exceptions in the job manager, they are 
not very descriptive. I can send a pull request that fixes some of them, if you 
want to.

A couple of examples:
{code:title=DefaultScheduler.java|borderStyle=solid}
                } catch (InstanceException e) {
                        final String exceptionMessage = 
StringUtils.stringifyException(e);
                        LOG.error(exceptionMessage);
                        this.jobQueue.remove(executionGraph);
                        throw new SchedulingException(exceptionMessage);
                }
{code}


{code:title=DefaultScheduler.java|borderStyle=solid}
                        switch (outputGate.getChannelType()) {
                        case NETWORK:
                                deployTarget = false;
                                break;
                        case IN_MEMORY:
                                deployTarget = true;
                                break;
                        default:
                                throw new IllegalStateException("Unknown 
channel type");
                        }
{code}




> Improve not enough slots SchedulingException message
> ----------------------------------------------------
>
>                 Key: FLINK-989
>                 URL: https://issues.apache.org/jira/browse/FLINK-989
>             Project: Flink
>          Issue Type: Bug
>          Components: JobManager
>            Reporter: Ufuk Celebi
>            Assignee: Stephan Ewen
>            Priority: Critical
>
> I think it would be good to have a more detailed message for the following 
> SchedulingException (available slots, required slots etc.):
> {code:java}
> eu.stratosphere.client.program.ProgramInvocationException: The program 
> execution failed: 
> eu.stratosphere.nephele.jobmanager.scheduler.SchedulingException: Not enough 
> slots to schedule job 04d754249c6c580000cd461d195ca000
>         at 
> eu.stratosphere.nephele.jobmanager.scheduler.DefaultScheduler.scheduleJob(DefaultScheduler.java:150)
>         at 
> eu.stratosphere.nephele.jobmanager.JobManager.submitJob(JobManager.java:504)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at eu.stratosphere.nephele.ipc.RPC$Server.call(RPC.java:417)
>         at eu.stratosphere.nephele.ipc.Server$Handler.run(Server.java:951)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to