HDFS-15573. Only log warning if considerLoad and considerStorageType are both true. Contributed by Stephen O'Donnell
This commit is contained in:
parent
aa80bcb1ec
commit
4eccdd950f
|
@ -326,12 +326,14 @@ public class DatanodeManager {
|
||||||
this.readConsiderStorageType = conf.getBoolean(
|
this.readConsiderStorageType = conf.getBoolean(
|
||||||
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_KEY,
|
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_KEY,
|
||||||
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_DEFAULT);
|
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_DEFAULT);
|
||||||
LOG.warn(
|
if (readConsiderLoad && readConsiderStorageType) {
|
||||||
"{} and {} are incompatible and only one can be enabled. "
|
LOG.warn(
|
||||||
+ "Both are currently enabled.",
|
"{} and {} are incompatible and only one can be enabled. "
|
||||||
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERLOAD_KEY,
|
+ "Both are currently enabled. {} will be ignored.",
|
||||||
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_KEY);
|
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERLOAD_KEY,
|
||||||
|
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_KEY,
|
||||||
|
DFSConfigKeys.DFS_NAMENODE_READ_CONSIDERSTORAGETYPE_KEY);
|
||||||
|
}
|
||||||
this.avoidStaleDataNodesForWrite = conf.getBoolean(
|
this.avoidStaleDataNodesForWrite = conf.getBoolean(
|
||||||
DFSConfigKeys.DFS_NAMENODE_AVOID_STALE_DATANODE_FOR_WRITE_KEY,
|
DFSConfigKeys.DFS_NAMENODE_AVOID_STALE_DATANODE_FOR_WRITE_KEY,
|
||||||
DFSConfigKeys.DFS_NAMENODE_AVOID_STALE_DATANODE_FOR_WRITE_DEFAULT);
|
DFSConfigKeys.DFS_NAMENODE_AVOID_STALE_DATANODE_FOR_WRITE_DEFAULT);
|
||||||
|
|
Loading…
Reference in New Issue