HDFS-11494. Log message when DN is not selected for block replication. Contributed by Yiqun Lin.

This commit is contained in:
Yiqun Lin 2017-03-04 13:41:49 +08:00
parent b26870c58e
commit 2288857e3b
1 changed files with 4 additions and 0 deletions

View File

@ -637,6 +637,10 @@ public class DatanodeDescriptor extends DatanodeInfo {
}
}
if (requiredSize > remaining - scheduledSize) {
LOG.debug(
"The node {} does not have enough {} space (required={},"
+ " scheduled={}, remaining={}).",
this, t, requiredSize, scheduledSize, remaining);
return null;
}
return storage;