You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2019/01/03 18:51:55 UTC

[GitHub] s-sahay commented on a change in pull request #3556: Fixing AzurePinotFS Move API

s-sahay commented on a change in pull request #3556: Fixing AzurePinotFS Move API
URL: https://github.com/apache/incubator-pinot/pull/3556#discussion_r245096629
 
 

 ##########
 File path: pinot-azure-filesystem/src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java
 ##########
 @@ -99,8 +99,7 @@ public boolean move(URI srcUri, URI dstUri, boolean overwrite) throws IOExceptio
     if (exists(dstUri) && !overwrite) {
       return false;
     }
-    //rename the file
-    return _adlStoreClient.rename(srcUri.getPath(), dstUri.getPath());
+    return copy(srcUri, dstUri) && delete(srcUri, true);
 
 Review comment:
   `rename()` with `overwrite` param set to `true` should give the same functionality.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org