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

Joao Salcedo commented on OOZIE-1975:
-------------------------------------

[~rkanter] However if an ERROR has occurred; and you retry the same job and 
succeed, the status will return the previous state 
"getVar(LAST_ACTION_IN_ERROR);"
The job will return with an ERROR status instead of clear the status out

> Documentation issue in wf:lastErrorNode()
> -----------------------------------------
>
>                 Key: OOZIE-1975
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1975
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Shwetha G S
>
> According to oozie doc 
> http://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html#a4.2.3_Workflow_EL_Functions,
> String wf:lastErrorNode()
> It returns the name of the last workflow action node that exit with an ERROR 
> exit state, or an empty string if no action has exited with ERROR state in 
> the current workflow job.
> But according to oozie code, 
> {code}
>     /**
>      * Return the name of the last action that ended in error.
>      *
>      * @return the name of the last action that ended in error, 
> <code>null</code> if no action in the workflow job has
>      *         ended in error.
>      */
>     public static String wf_lastErrorNode() {
>         return 
> getWorkflow().getWorkflowInstance().getVar(LAST_ACTION_IN_ERROR);
>     }
> {code}
> So, if there is no error, this EL returns null, but is documented as 
> returning empty string



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

Reply via email to