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:
parent
dd7f5a3b88
commit
456fe08a6d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue