HDFS-9076. Log full path instead of inodeId in DFSClient#closeAllFilesBeingWritten() (Contributed by Surendra Singh Lilhore)

(cherry picked from commit e52bc697f8)
This commit is contained in:
Vinayakumar B 2015-09-24 17:43:23 +05:30
parent d148b6a234
commit a0ff9af827
3 changed files with 12 additions and 2 deletions

View File

@ -1053,6 +1053,9 @@ Release 2.8.0 - UNRELEASED
TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on
Windows. (Chris Nauroth via wheat9)
HDFS-9076. Log full path instead of inodeId in DFSClient
#closeAllFilesBeingWritten() (Surendra Singh Lilhore via vinayakumarb)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -589,8 +589,8 @@ public class DFSClient implements java.io.Closeable, RemotePeerFactory,
out.close();
}
} catch(IOException ie) {
LOG.error("Failed to " + (abort? "abort": "close") +
" inode " + inodeId, ie);
LOG.error("Failed to " + (abort ? "abort" : "close") + " file: "
+ out.getSrc() + " with inode: " + inodeId, ie);
}
}
}

View File

@ -907,6 +907,13 @@ public class DFSOutputStream extends FSOutputSummer
return fileId;
}
/**
* Return the source of stream.
*/
String getSrc() {
return src;
}
/**
* Returns the data streamer object.
*/