HDFS-9076. Log full path instead of inodeId in DFSClient#closeAllFilesBeingWritten() (Contributed by Surendra Singh Lilhore)
This commit is contained in:
parent
ead1b9e680
commit
e52bc697f8
|
@ -1400,6 +1400,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on
|
TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on
|
||||||
Windows. (Chris Nauroth via wheat9)
|
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
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -583,8 +583,8 @@ public class DFSClient implements java.io.Closeable, RemotePeerFactory,
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
} catch(IOException ie) {
|
} catch(IOException ie) {
|
||||||
LOG.error("Failed to " + (abort? "abort": "close") +
|
LOG.error("Failed to " + (abort ? "abort" : "close") + " file: "
|
||||||
" inode " + inodeId, ie);
|
+ out.getSrc() + " with inode: " + inodeId, ie);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -902,6 +902,13 @@ public class DFSOutputStream extends FSOutputSummer
|
||||||
return fileId;
|
return fileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the source of stream.
|
||||||
|
*/
|
||||||
|
String getSrc() {
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data streamer object.
|
* Returns the data streamer object.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue