HDFS-12293. DataNode should log file name on disk error. Contributed by Ajay Kumar.
This commit is contained in:
parent
51881a863c
commit
a1e3f84afe
@ -284,7 +284,8 @@ class BlockReceiver implements Closeable {
|
|||||||
|
|
||||||
// check if there is a disk error
|
// check if there is a disk error
|
||||||
IOException cause = DatanodeUtil.getCauseIfDiskError(ioe);
|
IOException cause = DatanodeUtil.getCauseIfDiskError(ioe);
|
||||||
DataNode.LOG.warn("IOException in BlockReceiver constructor"
|
DataNode.LOG
|
||||||
|
.warn("IOException in BlockReceiver constructor :" + ioe.getMessage()
|
||||||
+ (cause == null ? "" : ". Cause is "), cause);
|
+ (cause == null ? "" : ". Cause is "), cause);
|
||||||
if (cause != null) {
|
if (cause != null) {
|
||||||
ioe = cause;
|
ioe = cause;
|
||||||
|
@ -2554,7 +2554,8 @@ public void run() {
|
|||||||
// disk check moved to FileIoProvider
|
// disk check moved to FileIoProvider
|
||||||
IOException cause = DatanodeUtil.getCauseIfDiskError(ie);
|
IOException cause = DatanodeUtil.getCauseIfDiskError(ie);
|
||||||
if (cause != null) { // possible disk error
|
if (cause != null) { // possible disk error
|
||||||
LOG.warn("IOException in DataTransfer#run(). Cause is ", cause);
|
LOG.warn("IOException in DataTransfer#run() "+ ie.getMessage() +". "
|
||||||
|
+ "Cause is ", cause);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
decrementXmitsInProgress();
|
decrementXmitsInProgress();
|
||||||
|
Loading…
Reference in New Issue
Block a user