You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by wa...@apache.org on 2014/05/16 06:14:51 UTC
svn commit: r1595101 - in
/hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs:
CHANGES-HDFS-2006.txt src/main/java/org/apache/hadoop/hdfs/DFSClient.java
Author: wang
Date: Fri May 16 04:14:50 2014
New Revision: 1595101
URL: http://svn.apache.org/r1595101
Log:
HDFS-6410. DFSClient unwraps AclException in xattr methods, but those methods cannot throw AclException. (wang)
Modified:
hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt
hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
Modified: hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt?rev=1595101&r1=1595100&r2=1595101&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt (original)
+++ hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt Fri May 16 04:14:50 2014
@@ -58,3 +58,6 @@ HDFS-2006 (Unreleased)
(umamahesh)
HDFS-6372. Handle setXattr rpcIDs for OfflineEditsViewer. (umamahesh)
+
+ HDFS-6410. DFSClient unwraps AclException in xattr methods, but those
+ methods cannot throw AclException. (wang)
Modified: hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java?rev=1595101&r1=1595100&r2=1595101&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java (original)
+++ hadoop/common/branches/HDFS-2006/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java Fri May 16 04:14:50 2014
@@ -2767,7 +2767,6 @@ public class DFSClient implements java.i
namenode.setXAttr(src, XAttrHelper.buildXAttr(name, value), flag);
} catch (RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
- AclException.class,
FileNotFoundException.class,
NSQuotaExceededException.class,
SafeModeException.class,
@@ -2784,7 +2783,6 @@ public class DFSClient implements java.i
return XAttrHelper.getFirstXAttrValue(result);
} catch(RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
- AclException.class,
FileNotFoundException.class,
UnresolvedPathException.class);
}
@@ -2796,7 +2794,6 @@ public class DFSClient implements java.i
return XAttrHelper.buildXAttrMap(namenode.getXAttrs(src, null));
} catch(RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
- AclException.class,
FileNotFoundException.class,
UnresolvedPathException.class);
}
@@ -2810,7 +2807,6 @@ public class DFSClient implements java.i
src, XAttrHelper.buildXAttrs(names)));
} catch(RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
- AclException.class,
FileNotFoundException.class,
UnresolvedPathException.class);
}
@@ -2822,7 +2818,6 @@ public class DFSClient implements java.i
namenode.removeXAttr(src, XAttrHelper.buildXAttr(name));
} catch(RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class,
- AclException.class,
FileNotFoundException.class,
NSQuotaExceededException.class,
SafeModeException.class,