HDFS-6117. Print file path information in FileNotFoundException on INode ID mismatch. Contributed by Suresh Srinivas.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1579104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2014-03-19 00:59:45 +00:00
parent ed02d0c0ce
commit d0f7985f5c
2 changed files with 4 additions and 1 deletions

View File

@ -644,6 +644,9 @@ Release 2.4.0 - UNRELEASED
HDFS-5516. WebHDFS does not require user name when anonymous http requests HDFS-5516. WebHDFS does not require user name when anonymous http requests
are disallowed. (Miodrag Radulovic via cnauroth) are disallowed. (Miodrag Radulovic via cnauroth)
HDFS-6117. Print file path information in FileNotFoundException on INode
ID mismatch. (suresh)
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9) HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

View File

@ -52,7 +52,7 @@ public class INodeId extends SequentialNumber {
if (requestId != GRANDFATHER_INODE_ID && requestId != inode.getId()) { if (requestId != GRANDFATHER_INODE_ID && requestId != inode.getId()) {
throw new FileNotFoundException( throw new FileNotFoundException(
"ID mismatch. Request id and saved id: " + requestId + " , " "ID mismatch. Request id and saved id: " + requestId + " , "
+ inode.getId()); + inode.getId() + " for file " + inode.getFullPathName());
} }
} }