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

Purshotam Shah updated OOZIE-1761:
----------------------------------

    Attachment: OOZIE-1761-V1.patch

> Improve sharelib purging logic
> ------------------------------
>
>                 Key: OOZIE-1761
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1761
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Purshotam Shah
>            Assignee: Purshotam Shah
>         Attachments: OOZIE-1761-V1.patch
>
>
> Currently oozie server purges anything older then 7 
> (oozie.ShareLibService.temp.sharelib.retention.days) days, keeping 2 latest 
> dir.
> Which might be faulty.
> Take an example.
> Currently used sharelib is sharelib-1, which is created a month before.
> If I restart Oozie server 2 times, it will create directory sharelib-2 and 
> sharelib-3 and delete anything older than 7 days( keeping two latest).
> In this case oozie server will delete sharelib-1, which is wrong and all 
> running jobs will start failing.
> Better logic is to keep all share-lib between current timestamp and  7days 
> old  + 1 latest sharelib older than 7 days.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to