Browse Source

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 năm trước cách đây
mục cha
commit
3ad3adeac6
2 tập tin đã thay đổi với 7 bổ sung1 xóa
  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());
           }
         }