falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peeyush Bishnoi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1146) feed retention policy deleted everything all the way up to the root
Date Thu, 09 Apr 2015 04:49:12 GMT

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

Peeyush Bishnoi commented on FALCON-1146:
-----------------------------------------

[~sriksun] : Patch is attached that will make the feedBasePath fully qualified. This will
help to stop the deletion up to the feedBasePath, once it matches to the parent directory
path in the deleteParentIfEmpty function. Please review.

> feed retention policy deleted everything all the way up to the root
> -------------------------------------------------------------------
>
>                 Key: FALCON-1146
>                 URL: https://issues.apache.org/jira/browse/FALCON-1146
>             Project: Falcon
>          Issue Type: Bug
>          Components: common, retention
>    Affects Versions: 0.6
>            Reporter: Peeyush Bishnoi
>            Assignee: Peeyush Bishnoi
>            Priority: Critical
>             Fix For: 0.6.1
>
>         Attachments: FALCON-1146.patch
>
>
> For the below feed definition xml,  feed is set to delete every minute but once it run
it deleted everything all the way up and even the root directory.
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <feed description="ALU EVDO retention feed" name="alu-evdo-retention" xmlns="uri:falcon:feed:0.1">
>     <frequency>minutes(30)</frequency>
>     <clusters>
>         <cluster name="primary-cluster" type="source">
>             <validity start="2014-03-01T00:00Z" end="2016-01-01T00:00Z"/>
>             <retention limit="minutes(1)" action="delete"/>
>         </cluster>
>     </clusters>
>     <locations>
>         <location type="data" path="/adis/test/${YEAR}-${MONTH}-${DAY}/${HOUR}/${MINUTE}"/>
>     </locations>
>     <ACL owner="flume" group="landing" permission="0x777"/>
>     <schema location="/none" provider="none" />
> </feed>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message