eduardofontes commented on a change in pull request #3746: NIFI-6679 - Patch 
MoveHDFS
URL: https://github.com/apache/nifi/pull/3746#discussion_r326355843
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/MoveHDFS.java
 ##########
 @@ -357,9 +357,10 @@ public Object run() {
                         if (destinationExists) {
                             switch (processorConfig.getConflictResolution()) {
                                 case REPLACE_RESOLUTION:
-                                    if (hdfs.delete(file, false)) {
+                                    // Remove destination file (newFile) to 
replace
 
 Review comment:
   Ok @tpalfy . Thank you! I've just put your code in MoveHDFS test class.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to