diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 0ea165a9ac2..0a2e67a346a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -398,6 +398,8 @@ Release 2.0.3-alpha - Unreleased HDFS-4068. DatanodeID and DatanodeInfo member should be private. (eli) + HDFS-4073. Two minor improvements to FSDirectory. (Jing Zhao via szetszwo) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java index d339e017bf2..c732b133aab 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java @@ -290,13 +290,18 @@ public class FSDirectory implements Closeable { try { newNode = addNode(path, newNode, UNKNOWN_DISK_SPACE); } catch (IOException e) { + if(NameNode.stateChangeLog.isDebugEnabled()) { + NameNode.stateChangeLog.debug( + "DIR* FSDirectory.unprotectedAddFile: exception when add " + path + + " to the file system", e); + } return null; } return newNode; } INodeDirectory addToParent(byte[] src, INodeDirectory parentINode, - INode newNode, boolean propagateModTime) throws UnresolvedLinkException { + INode newNode, boolean propagateModTime) { // NOTE: This does not update space counts for parents INodeDirectory newParent = null; writeLock();