@@ -126,6 +126,9 @@ Trunk (unreleased changes)
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
@@ -486,7 +486,7 @@ class FSDirectory implements FSConstants {
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);
@@ -177,7 +177,7 @@ public class HftpFileSystem extends FileSystem {
public FileStatus getFileStatus(Path f) throws IOException {
fetchList(f.toUri().getPath(), false);
if (fslist.size() == 0) {
+ throw new IOException("File does not exist: " + f);
return fslist.get(0);