[
https://issues.apache.org/jira/browse/OOZIE-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537418#comment-13537418
]
Nathaniel Troutman commented on OOZIE-693:
------------------------------------------
Not sure how to reopen this, but the following workflow now fails. It simple
deletes the output forks the creation of two directories and finishes. It fails
with the error:
{noformat}
Error: E0735 : E0735: There was an invalid "error to" transition to node
[send-error-email] while using fork/join
{noformat}
Which I have reduced down to each node using the same "error to" transition to
send an error email before moving to done.
{code:xml}
<workflow-app xmlns="uri:oozie:workflow:0.2" name="simple">
<start to="prep"/>
<!-- this node will remove everything before stuff gets started -->
<action name="prep">
<fs><delete path='${rootOutpath}'/></fs>
<ok to="fork-it"/>
<error to="send-error-email"/>
</action>
<!-- create two directories -->
<fork name="fork-it">
<path start="path1"/>
<path start="path2"/>
</fork>
<action name="path1">
<fs><mkdir path='${rootOutpath}/path1'/></fs>
<ok to="join-it"/>
<error to="send-error-email"/>
</action>
<action name="path2">
<fs><mkdir path='${rootOutpath}/path2'/></fs>
<ok to="join-it"/>
<error to="send-error-email"/>
</action>
<join name="join-it" to="send-done-email"/>
<action name="send-done-email">
<email xmlns="uri:oozie:email-action:0.1">
<to>${wf:user()}@mail.com</to>
<subject>Oozie Workflow Complete ${wf:name()}
on ${clusterName}</subject>
<body>Done</body>
</email>
<ok to="done"/>
<error to="kill"/>
</action>
<action name="send-error-email">
<email xmlns="uri:oozie:email-action:0.1">
<to>${wf:user()}@mail.com</to>
<subject>Oozie Workflow Failure ${wf:name()} action
${wf:lastErrorNode()} on ${clusterName}</subject>
<body>Error Message:
${wf:errorMessage(wf:lastErrorNode())}</body>
</email>
<ok to="done"/>
<error to="kill"/>
</action>
<kill name="kill">
<message>FATAL: unable to send email on action
failure.</message>
</kill>
<end name="done"/>
</workflow-app>
{code}
> Fork-join validation doesn't check for the 'error to' transition of nodes
> -------------------------------------------------------------------------
>
> Key: OOZIE-693
> URL: https://issues.apache.org/jira/browse/OOZIE-693
> Project: Oozie
> Issue Type: Bug
> Reporter: Virag Kothari
> Assignee: Virag Kothari
> Fix For: 3.2.0
>
>
> This is in addition to Oozie-636. Fork-join validation doesn't check for the
> 'error to' transition of nodes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira