HDFS-12293. DataNode should log file name on disk error. Contributed by Ajay Kumar.
This commit is contained in:
parent
82e1cd08eb
commit
98ba68b05d
@ -281,7 +281,8 @@ class BlockReceiver implements Closeable {
|
||||
|
||||
// check if there is a disk error
|
||||
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);
|
||||
if (cause != null) {
|
||||
ioe = cause;
|
||||
|
@ -2490,7 +2490,8 @@ public void run() {
|
||||
// disk check moved to FileIoProvider
|
||||
IOException cause = DatanodeUtil.getCauseIfDiskError(ie);
|
||||
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 {
|
||||
xmitsInProgress.getAndDecrement();
|
||||
|
Loading…
x
Reference in New Issue
Block a user