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

This commit is contained in:
Mingliang Liu 2017-03-03 18:47:13 -08:00 committed by Anu Engineer
parent e291aba474
commit 370f4da168
1 changed files with 4 additions and 0 deletions

View File

@ -687,6 +687,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;