From c11c2ee649a186d211cea0b85cb33dab0b3f96db Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Fri, 3 Jun 2016 18:11:12 -0700 Subject: [PATCH] Revert "HDFS-10224. Implement asynchronous rename for DistributedFileSystem. Contributed by Xiaobing Zhou" This reverts commit d316f44059c4417ed30064470a590991dd160857. --- .../java/org/apache/hadoop/fs/FileSystem.java | 1 + .../java/org/apache/hadoop/ipc/Client.java | 11 +- .../apache/hadoop/ipc/ProtobufRpcEngine.java | 34 +-- .../org/apache/hadoop/ipc/TestAsyncIPC.java | 2 +- .../hdfs/AsyncDistributedFileSystem.java | 110 -------- .../hadoop/hdfs/DistributedFileSystem.java | 22 +- .../ClientNamenodeProtocolTranslatorPB.java | 41 +-- .../hadoop/hdfs/TestAsyncDFSRename.java | 258 ------------------ 8 files changed, 18 insertions(+), 461 deletions(-) delete mode 100644 hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/AsyncDistributedFileSystem.java delete mode 100644 hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAsyncDFSRename.java diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java index 740072db91e..ab3eac0db95 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java @@ -1252,6 +1252,7 @@ public abstract class FileSystem extends Configured implements Closeable { /** * Renames Path src to Path dst *