timeabarna commented on pull request #4815: URL: https://github.com/apache/nifi/pull/4815#issuecomment-779900021
> @timeabarna What happens when an existing file is being overwritten with the Conflict Resolution Strategy set to replace? @jfrazee Thanks for pointing this out. I've checked the original version and the behaviour is the following: - The original file has been replaced with a 0 byte file - uploading content started - if uploading failed the original data was gone and the 0 byte file remained With this current modification the behaviour: - file replaced with a 0 byte file - uploading content started - if failed the 0 byte file was removed (if deletion fails, the 0 byte file remains) I'm exploring the possibility using temp files instead of inline replacement however I think this should be covered by another Jira ticket. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
