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