You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by je...@apache.org on 2018/11/27 22:06:30 UTC

[incubator-pinot] 01/01: Fixing adl move api

This is an automated email from the ASF dual-hosted git repository.

jenniferdai pushed a commit to branch adlFix
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 1563fd6eaa29e1c66fdb9597bec936912c555fa1
Author: Jennifer Dai <jd...@linkedin.com>
AuthorDate: Tue Nov 27 14:06:19 2018 -0800

    Fixing adl move api
---
 .../src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pinot-azure-filesystem/src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java b/pinot-azure-filesystem/src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java
index 796d4a0..0a7e84b 100644
--- a/pinot-azure-filesystem/src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java
+++ b/pinot-azure-filesystem/src/main/java/com/linkedin/pinot/filesystem/AzurePinotFS.java
@@ -99,8 +99,7 @@ public class AzurePinotFS extends PinotFS {
     if (exists(dstUri) && !overwrite) {
       return false;
     }
-    //rename the file
-    return _adlStoreClient.rename(srcUri.getPath(), dstUri.getPath());
+    return copy(srcUri, dstUri) && delete(srcUri, true);
   }
 
   @Override


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