HDFS-11054. Suppress verbose log message in BlockPlacementPolicyDefault. Contributed by Chen Liang.

This commit is contained in:
Arpit Agarwal 2016-10-25 19:50:56 -07:00
parent d88dca844a
commit 9dce9011ad
1 changed files with 5 additions and 3 deletions

View File

@ -1034,9 +1034,11 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy {
}
firstOne = false;
if (cur == null) {
LOG.warn("No excess replica can be found. excessTypes: {}." +
" moreThanOne: {}. exactlyOne: {}.", excessTypes, moreThanOne,
exactlyOne);
if (LOG.isDebugEnabled()) {
LOG.debug("No excess replica can be found. excessTypes: {}." +
" moreThanOne: {}. exactlyOne: {}.", excessTypes,
moreThanOne, exactlyOne);
}
break;
}