HDFS-16871 DiskBalancer process may throw IllegalArgumentException when the target DataNode has capital letter in hostname (#5240)
This commit is contained in:
parent
f6605f1b3a
commit
7ff326129d
@ -389,6 +389,6 @@ public DiskBalancerDataNode getNodeByIPAddress(String ipAddresss) {
|
||||
* @return DiskBalancerDataNode.
|
||||
*/
|
||||
public DiskBalancerDataNode getNodeByName(String hostName) {
|
||||
return hostNames.get(hostName);
|
||||
return hostNames.get(hostName.toLowerCase(Locale.US));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user