浏览代码

HADOOP-978. Add the client name and the address of the node that previously started to create the file to the description of AlreadyBeingCreatedException. Contributed by Konstantin Shvachko.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@527417 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 年之前
父节点
当前提交
3ad3adeac6
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 4 0
      CHANGES.txt
  2. 3 1
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

+ 4 - 0
CHANGES.txt

@@ -151,6 +151,10 @@ Trunk (unreleased changes)
     FSNamesystem$UnderReplicatedBlocks add() method.  
     (Hairong Kuang via tomwhite)
 
+47. HADOOP-978.  Add the client name and the address of the node that
+    previously started to create the file to the description of 
+    AlreadyBeingCreatedException.  (Konstantin Shvachko via tomwhite)
+
 
 Release 0.12.3 - 2007-04-06
 

+ 3 - 1
src/java/org/apache/hadoop/dfs/FSNamesystem.java

@@ -777,7 +777,9 @@ class FSNamesystem implements FSConstants {
             throw new AlreadyBeingCreatedException(
                   "failed to create file " + src + " for " + holder +
                   " on client " + clientMachine + 
-                  " because pendingCreates is non-null.");
+                  ", because this file is already being created by " +
+                  pendingFile.getClientName() + 
+                  " on " + pendingFile.getClientMachine());
           }
         }