HDFS-6285. tidy an error log inside BlockReceiver. Contributed by Liang Xie.

This commit is contained in:
Uma Maheswara Rao G 2015-05-08 17:22:52 +05:30
parent c648317a68
commit 7b1ea9c481
2 changed files with 4 additions and 2 deletions

View File

@ -693,6 +693,8 @@ Release 2.8.0 - UNRELEASED
HDFS-3384. DataStreamer thread should be closed immediatly when failed to
setup a PipelineForAppendOrRecovery (Uma Maheswara Rao G via vinayakumarb)
HDFS-6285. tidy an error log inside BlockReceiver. (Liang Xie via umamahesh)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -262,8 +262,8 @@ class BlockReceiver implements Closeable {
// check if there is a disk error
IOException cause = DatanodeUtil.getCauseIfDiskError(ioe);
DataNode.LOG.warn("IOException in BlockReceiver constructor. Cause is ",
cause);
DataNode.LOG.warn("IOException in BlockReceiver constructor"
+ (cause == null ? "" : ". Cause is "), cause);
if (cause != null) { // possible disk error
ioe = cause;