hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject hadoop git commit: HADOOP-14512. WASB atomic rename should not throw exception if the file is neither in src nor in dst when doing the rename. Contributed by Duo Xu
Date Fri, 09 Jun 2017 20:07:42 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 85d561a5b -> c953e0ce8


HADOOP-14512. WASB atomic rename should not throw exception if the file is neither in src
nor in dst when doing the rename. Contributed by Duo Xu

(cherry picked from commit 325163f23f727e82379d4a385b73aa3a04a510f6)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c953e0ce
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c953e0ce
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c953e0ce

Branch: refs/heads/branch-2
Commit: c953e0ce8b8a333989adb534532572c5cc713fe6
Parents: 85d561a
Author: Mingliang Liu <liuml07@apache.org>
Authored: Fri Jun 9 13:07:11 2017 -0700
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Fri Jun 9 13:07:35 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/fs/azure/NativeAzureFileSystem.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c953e0ce/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
index 5cd6b82..fafa85d 100644
--- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
+++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
@@ -611,10 +611,12 @@ public class NativeAzureFileSystem extends FileSystem {
         // The rename already finished, so do nothing.
         ;
       } else {
-        throw new IOException(
-            "Attempting to complete rename of file " + srcKey + "/" + fileName
-            + " during folder rename redo, and file was not found in source "
-            + "or destination.");
+        // HADOOP-14512
+        LOG.warn(
+          "Attempting to complete rename of file " + srcKey + "/" + fileName
+          + " during folder rename redo, and file was not found in source "
+          + "or destination " + dstKey + "/" + fileName + ". "
+          + "This must mean the rename of this file has already completed");
       }
     }
 


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


Mime
View raw message