HDFS-6285. tidy an error log inside BlockReceiver. Contributed by Liang Xie.
(cherry picked from commit 7b1ea9c481
)
This commit is contained in:
parent
d129bbbb37
commit
faf26f081c
|
@ -366,6 +366,8 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-3384. DataStreamer thread should be closed immediatly when failed to
|
HDFS-3384. DataStreamer thread should be closed immediatly when failed to
|
||||||
setup a PipelineForAppendOrRecovery (Uma Maheswara Rao G via vinayakumarb)
|
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
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -262,8 +262,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. Cause is ",
|
DataNode.LOG.warn("IOException in BlockReceiver constructor"
|
||||||
cause);
|
+ (cause == null ? "" : ". Cause is "), cause);
|
||||||
|
|
||||||
if (cause != null) { // possible disk error
|
if (cause != null) { // possible disk error
|
||||||
ioe = cause;
|
ioe = cause;
|
||||||
|
|
Loading…
Reference in New Issue