浏览代码

HADOOP-3128. Throw RemoteException in setPermissions and setOwner of DistributedFileSystem. Contributed by Konstantin

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@642479 13f79535-47bb-0310-9956-ffa450edef68
Nigel Daley 17 年之前
父节点
当前提交
42d4a66ef9
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 2 0
      src/java/org/apache/hadoop/dfs/DistributedFileSystem.java

+ 3 - 0
CHANGES.txt

@@ -411,6 +411,9 @@ Trunk (unreleased changes)
 
     HADOOP-3114. Fix TestDFSShell on Windows. (Lohit Vijaya Renu via cdouglas)
 
+    HADOOP-3128. Throw RemoteException in setPermissions and setOwner of 
+    DistributedFileSystem.  (shv via nigel)
+
 Release 0.16.2 - 2008-04-02
 
   BUG FIXES

+ 2 - 0
src/java/org/apache/hadoop/dfs/DistributedFileSystem.java

@@ -402,6 +402,7 @@ public class DistributedFileSystem extends FileSystem {
       if(FileNotFoundException.class.getName().equals(re.getClassName())) {
         throw new FileNotFoundException("File does not exist: " + p);
       }
+      throw re;
     }
   }
 
@@ -417,6 +418,7 @@ public class DistributedFileSystem extends FileSystem {
       if(FileNotFoundException.class.getName().equals(re.getClassName())) {
         throw new FileNotFoundException("File does not exist: " + p);
       }
+      throw re;
     }
   }
 }