hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r605457 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSDirectory.java src/java/org/apache/hadoop/dfs/HftpFileSystem.java
Date Wed, 19 Dec 2007 07:33:47 GMT
Author: dhruba
Date: Tue Dec 18 23:33:46 2007
New Revision: 605457

URL: http://svn.apache.org/viewvc?rev=605457&view=rev
Log:
HADOOP-2432. HDFS includes the name of the file while throwing
"File does not exist"  exception. (Jim Kellerman via dhruba)


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

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=605457&r1=605456&r2=605457&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Dec 18 23:33:46 2007
@@ -126,6 +126,9 @@
     HADOOP-2326. The initial block report at Datanode startup time has
     a random backoff period.  (Sanjay Radia via dhruba)
 
+    HADOOP-2432. HDFS includes the name of the file while throwing 
+    "File does not exist"  exception. (Jim Kellerman via dhruba)
+
   OPTIMIZATIONS
 
     HADOOP-1898.  Release the lock protecting the last time of the last stack

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDirectory.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDirectory.java?rev=605457&r1=605456&r2=605457&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDirectory.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSDirectory.java Tue Dec 18 23:33:46
2007
@@ -486,7 +486,7 @@
     synchronized (rootDir) {
       INode targetNode = rootDir.getNode(srcs);
       if (targetNode == null) {
-        throw new IOException("File does not exist");
+        throw new IOException("File does not exist: " + srcs);
       }
       else {
         return new DFSFileInfo(srcs, targetNode);

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/HftpFileSystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/HftpFileSystem.java?rev=605457&r1=605456&r2=605457&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/HftpFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/HftpFileSystem.java Tue Dec 18 23:33:46
2007
@@ -177,7 +177,7 @@
     public FileStatus getFileStatus(Path f) throws IOException {
       fetchList(f.toUri().getPath(), false);
       if (fslist.size() == 0) {
-        throw new IOException("File does not exist");
+        throw new IOException("File does not exist: " + f);
       }
       return fslist.get(0);
     }



Mime
View raw message