HDFS-16871 DiskBalancer process may throw IllegalArgumentException when the target DataNode has capital letter in hostname (#5240)

This commit is contained in:
Daniel-009497 2022-12-21 07:12:02 +08:00 committed by GitHub
parent f6605f1b3a
commit 7ff326129d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -389,6 +389,6 @@ public class DiskBalancerCluster {
* @return DiskBalancerDataNode.
*/
public DiskBalancerDataNode getNodeByName(String hostName) {
return hostNames.get(hostName);
return hostNames.get(hostName.toLowerCase(Locale.US));
}
}