Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.2.0
-
None
-
None
-
Hadoop 2.0.0-cdh4.1.2
Oozie client build version: 3.2.0-cdh4.1.2
Description
Workflows that fork and inside the forked paths use the same error-to transition now fail with the following error:
Error: E0735 : E0735: There was an invalid "error to" transition to node [send-error-email] while using fork/join
This prevents the workflow from having a single node, used by multiple nodes within a fork as the error-to transition target, that is responsible for sending an email before exiting.
The following is a example workflow illustrating this issue:
<workflow-app xmlns="uri:oozie:workflow:0.2" name="simple"> <start to="prep"/> <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>
Attachments
Issue Links
- duplicates
-
OOZIE-1035 Improve forkjoin validation to allow same errorTo transitions
- Closed