HDFS-10381, DataStreamer DataNode exclusion log message should be warning. (John Zhuge via Yongjun Zhang)

(cherry picked from commit 16c07cc68a)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/StripedDataStreamer.java
This commit is contained in:
Yongjun Zhang 2016-05-17 15:45:15 -07:00
parent dd7f5a3b88
commit 456fe08a6d
1 changed files with 2 additions and 2 deletions

View File

@ -1476,12 +1476,12 @@ class DataStreamer extends Daemon {
success = createBlockOutputStream(nodes, storageTypes, 0L, false); success = createBlockOutputStream(nodes, storageTypes, 0L, false);
if (!success) { if (!success) {
LOG.info("Abandoning " + block); LOG.warn("Abandoning " + block);
dfsClient.namenode.abandonBlock(block, stat.getFileId(), src, dfsClient.namenode.abandonBlock(block, stat.getFileId(), src,
dfsClient.clientName); dfsClient.clientName);
block = null; block = null;
final DatanodeInfo badNode = nodes[errorState.getBadNodeIndex()]; final DatanodeInfo badNode = nodes[errorState.getBadNodeIndex()];
LOG.info("Excluding datanode " + badNode); LOG.warn("Excluding datanode " + badNode);
excludedNodes.put(badNode, badNode); excludedNodes.put(badNode, badNode);
} }
} while (!success && --count >= 0); } while (!success && --count >= 0);