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

Virag Kothari commented on OOZIE-1271:
--------------------------------------

I realized that wf submission (SubmitX) is a synchronous call. So we need to 
make the wf submission happen before the db update as the update of coord 
action involves setting the wf id. 
In that case, we can allow the wf submission and if the db operation in 
CoordActionStart fails, we can fail the workflow as part of cleanup. Thoughts? 

                
> Coordinator Action fails but workflow keeps running
> ---------------------------------------------------
>
>                 Key: OOZIE-1271
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1271
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Virag Kothari
>
> In CoordActionStart, the coordinator submits a workflow job and then does a 
> db update. If the db update fails, the coordinator action is marked failed 
> but as the wf job is already submitted, the wf starts RUNNING.
> The wf should be submitted only after the db operation succeeds.

--
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

Reply via email to