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

Pallavi Rao commented on FALCON-1844:
-------------------------------------

 Falcon supports deletion of existing files in destination as an optional 
property. In the feed definition, the following custom property must be added : 
<property name="removeDeletedFiles" value="true"/>
This property when set to true, deletes files - should there be  any files in 
the target directory that were removed from the source directory.

However, this is not default behavior. The fix will set removeDeletedFiles to 
"true" by default. User can overwrite it (and set it to false) by specifying 
the custom property in the feed definition.

> Falcon feed replication leaves behind old files when a feed instance is re-run
> ------------------------------------------------------------------------------
>
>                 Key: FALCON-1844
>                 URL: https://issues.apache.org/jira/browse/FALCON-1844
>             Project: Falcon
>          Issue Type: Bug
>            Reporter: Pallavi Rao
>            Assignee: Pallavi Rao
>
> When we re-replicate the data from one cluster to another, replication copies 
> and overwrites old files, but, does not remove extra files in destination 
> (that are not in the source dir any more). Example, first replication run 
> copied 14 part files, on rerun, the source only had 13 part files, the 14th 
> file still lingers in the destination.



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

Reply via email to