You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "wang jinyin (JIRA)" <ji...@apache.org> on 2018/09/18 02:43:00 UTC
[jira] [Created] (OOZIE-3345) forkjoin validation error when
multiple(>=3) actions with "ok to""error to" same action
wang jinyin created OOZIE-3345:
----------------------------------
Summary: forkjoin validation error when multiple(>=3) actions with "ok to""error to" same action
Key: OOZIE-3345
URL: https://issues.apache.org/jira/browse/OOZIE-3345
Project: Oozie
Issue Type: Bug
Components: core
Affects Versions: 4.3.0
Reporter: wang jinyin
when multiple (n >= 3) actions with "ok to" "error to" transition to same action, forkjoin validation will throw WorkflowException(ErrorCode.E0743)
{quote}org.apache.oozie.workflow.WorkflowException: E0743: Multiple "ok to" transitions to the same node, [C], are not allowed
at org.apache.oozie.workflow.lite.LiteWorkflowValidator.validateForkJoin(LiteWorkflowValidator.java:186)
at org.apache.oozie.workflow.lite.LiteWorkflowValidator.validateForkJoin(LiteWorkflowValidator.java:267)
at org.apache.oozie.workflow.lite.LiteWorkflowValidator.validateForkJoin(LiteWorkflowValidator.java:271)
at org.apache.oozie.workflow.lite.LiteWorkflowValidator.validateForkJoin(LiteWorkflowValidator.java:275)
at org.apache.oozie.workflow.lite.LiteWorkflowValidator.validateWorkflow(LiteWorkflowValidator.java:62)
at org.apache.oozie.workflow.lite.LiteWorkflowAppParser.validateAndParse(LiteWorkflowAppParser.java:185)
at org.apache.oozie.workflow.lite.LiteWorkflowLib.parseDef(LiteWorkflowLib.java:58)
at org.apache.oozie.service.LiteWorkflowAppService.parseDef(LiteWorkflowAppService.java:57)
at org.apache.oozie.service.LiteWorkflowAppService.parseDef(LiteWorkflowAppService.java:46)
at org.apache.oozie.command.wf.SubmitXCommand.execute(SubmitXCommand.java:167)
{quote}
workflow definition:
{quote}<action name="A">
<ok to="B"/>
<error to="B"/>
</action>
<action name="B">
<ok to="C"/>
<error to="C"/>
</action>
<action name="C">
<ok to="end"/>
<error to="kill"/>
</action>
{quote}
[reason]
When validate A's "ok to" path -> B's "ok to" path, action node C has already been added into nodeAndDecisionParents.
When validate A's "error to" path -> B's "ok to" path, C's decisionParent == null and topDecisionParent == null.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)