You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by to...@apache.org on 2007/04/11 10:48:23 UTC

svn commit: r527417 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSNamesystem.java

Author: tomwhite
Date: Wed Apr 11 01:48:16 2007
New Revision: 527417

URL: http://svn.apache.org/viewvc?view=rev&rev=527417
Log:
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.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=527417&r1=527416&r2=527417
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Apr 11 01:48:16 2007
@@ -151,6 +151,10 @@
     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
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?view=diff&rev=527417&r1=527416&r2=527417
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Wed Apr 11 01:48:16 2007
@@ -777,7 +777,9 @@
             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());
           }
         }