HDFS-10963. Reduce log level when network topology cannot find enough datanodes. Contributed by Xiao chen
This commit is contained in:
parent
272a21747e
commit
b90fc70d67
@ -813,7 +813,7 @@ private Node chooseRandom(final String scope, String excludedScope,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (numOfDatanodes == 0) {
|
if (numOfDatanodes == 0) {
|
||||||
LOG.warn("Failed to find datanode (scope=\"{}\" excludedScope=\"{}\").",
|
LOG.debug("Failed to find datanode (scope=\"{}\" excludedScope=\"{}\").",
|
||||||
String.valueOf(scope), String.valueOf(excludedScope));
|
String.valueOf(scope), String.valueOf(excludedScope));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,8 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy {
|
|||||||
|
|
||||||
private static final String enableDebugLogging =
|
private static final String enableDebugLogging =
|
||||||
"For more information, please enable DEBUG log level on "
|
"For more information, please enable DEBUG log level on "
|
||||||
+ BlockPlacementPolicy.class.getName();
|
+ BlockPlacementPolicy.class.getName() + " and "
|
||||||
|
+ NetworkTopology.class.getName();
|
||||||
|
|
||||||
private static final ThreadLocal<StringBuilder> debugLoggingBuilder
|
private static final ThreadLocal<StringBuilder> debugLoggingBuilder
|
||||||
= new ThreadLocal<StringBuilder>() {
|
= new ThreadLocal<StringBuilder>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user