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 sz...@apache.org on 2012/10/15 16:05:31 UTC
svn commit: r1398293 - in
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs: CHANGES.txt
src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
Author: szetszwo
Date: Mon Oct 15 14:05:31 2012
New Revision: 1398293
URL: http://svn.apache.org/viewvc?rev=1398293&view=rev
Log:
HDFS-4036. Remove "throw UnresolvedLinkException" from FSDirectory.unprotectedAddFile(..). Contributed by Jing Zhao
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1398293&r1=1398292&r2=1398293&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Mon Oct 15 14:05:31 2012
@@ -385,6 +385,9 @@ Release 2.0.3-alpha - Unreleased
HDFS-4037. Rename the getReplication() method in BlockCollection to
getBlockReplication(). (szetszwo)
+ HDFS-4036. Remove "throw UnresolvedLinkException" from
+ FSDirectory.unprotectedAddFile(..). (Jing Zhao via szetszwo)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java?rev=1398293&r1=1398292&r2=1398293&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java Mon Oct 15 14:05:31 2012
@@ -213,8 +213,9 @@ public class FSDirectory implements Clos
/**
* Add the given filename to the fs.
- * @throws QuotaExceededException
- * @throws FileAlreadyExistsException
+ * @throws FileAlreadyExistsException
+ * @throws QuotaExceededException
+ * @throws UnresolvedLinkException
*/
INodeFileUnderConstruction addFile(String path,
PermissionStatus permissions,
@@ -265,8 +266,6 @@ public class FSDirectory implements Clos
return newNode;
}
- /**
- */
INode unprotectedAddFile( String path,
PermissionStatus permissions,
short replication,
@@ -275,8 +274,7 @@ public class FSDirectory implements Clos
long preferredBlockSize,
boolean underConstruction,
String clientName,
- String clientMachine)
- throws UnresolvedLinkException {
+ String clientMachine) {
INode newNode;
assert hasWriteLock();
if (underConstruction) {