hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Francke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6298) Job#toString throws an exception when not in state RUNNING
Date Thu, 16 Apr 2015 13:24:59 GMT

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

Lars Francke commented on MAPREDUCE-6298:
-----------------------------------------

Anyone up for a quick review? [~steve_l] maybe...

> Job#toString throws an exception when not in state RUNNING
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-6298
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6298
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Lars Francke
>            Assignee: Lars Francke
>            Priority: Minor
>         Attachments: MAPREDUCE-6298.1.patch
>
>
> Job#toString calls {{ensureState(JobState.RUNNING);}} as the very first thing. That method
causes an Exception to be thrown which is not nice.
> One thing this breaks is usage of Job on the Scala (e.g. Spark) REPL as that calls toString
after every invocation and that fails every time.
> I'll attach a patch that checks state and if it's RUNNING prints the original message
and if not prints something else.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message