From 456fe08a6dcf1168f478a1bdd9f2dc3b4ff59810 Mon Sep 17 00:00:00 2001 From: Yongjun Zhang Date: Tue, 17 May 2016 15:45:15 -0700 Subject: [PATCH] HDFS-10381, DataStreamer DataNode exclusion log message should be warning. (John Zhuge via Yongjun Zhang) (cherry picked from commit 16c07cc68a3e0a06f57b7f4c7207cc8e5dce211f) Conflicts: hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/StripedDataStreamer.java --- .../src/main/java/org/apache/hadoop/hdfs/DataStreamer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java index 1ef92b6e0c3..323ccceade8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java @@ -1476,12 +1476,12 @@ class DataStreamer extends Daemon { success = createBlockOutputStream(nodes, storageTypes, 0L, false); if (!success) { - LOG.info("Abandoning " + block); + LOG.warn("Abandoning " + block); dfsClient.namenode.abandonBlock(block, stat.getFileId(), src, dfsClient.clientName); block = null; final DatanodeInfo badNode = nodes[errorState.getBadNodeIndex()]; - LOG.info("Excluding datanode " + badNode); + LOG.warn("Excluding datanode " + badNode); excludedNodes.put(badNode, badNode); } } while (!success && --count >= 0);