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

Joseph Witt commented on NIFI-1045:
-----------------------------------

[~trixpan] [[email protected]] We intentionally did not add a 
conflict resolution of 'rename' because we used to have this and what ended up 
happening is that the logic was never quite robust enough for some use case.  
Instead, keep in mind the conflict resolution (default) of FAILURE is something 
that can be routed to an UpdateAttribute processor which allows the file to be 
renamed to whatever scheme you need.  To Andre's point you would want to change 
the 'new' files name.

I do not recommend we got with the patch as is and I recommend we consider 
resolving this JIRA by documenting this pattern via a template.

Thanks
Joe

> Add "backup suffix" Conflict Resolution Strategy to PutHDFS / PutFile 
> ----------------------------------------------------------------------
>
>                 Key: NIFI-1045
>                 URL: https://issues.apache.org/jira/browse/NIFI-1045
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 0.3.0
>            Reporter: Andre
>
> It would be great if we could add a "backup suffix" conflict resolution 
> strategy to when saving files to FS/HDFS. This would act in a similar way to 
> rsync's  {{--backup --suffix}}
> The suffix could support Language expression (similar to using 
> {{--suffix=`date +"%F"`}} on rsync)



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

Reply via email to