[ 
https://issues.apache.org/jira/browse/OOZIE-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaobin Zheng updated OOZIE-2796:
---------------------------------
    Attachment: OOZIE-2796-1.patch

Action dir is inside workflow dir. While JavaActionExecutor.cleanUpActionDir() 
is honoring oozie.action.keep.dir, WfEndXCommand.deleteWFDir() does not. Thus 
the action/workflow dirs get deleted by WfEndXCommand.

1.patch makes WfEndXCommand.deleteWFDir() check the configuration and not 
delete the workflow directory if it is set to true. Since this configuration 
can be set in workflow level, I think it makes sense to leave the workflow 
directory as a whole.

I also added a test case for WfEndXCommand to capture different scenarios for 
deleting workflow directory, which was missing.

> oozie.action.keep.action.dir not getting noticed
> ------------------------------------------------
>
>                 Key: OOZIE-2796
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2796
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: 4.3.0
>            Reporter: Andras Piros
>            Assignee: Xiaobin Zheng
>             Fix For: trunk
>
>         Attachments: OOZIE-2796-1.patch
>
>
> When trying to add following configuration entry:
> {code:xml}
> <property>
>     <name>oozie.action.keep.action.dir</name>
>     <value>true</value>
> </property>
> {code}
> to the application level configuration of {{workflow.xml}}, the workflow 
> directories are removed just after the workflow has finished.
> This should not be the case.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to