[
https://issues.apache.org/jira/browse/HDFS-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502556#comment-13502556
]
Junping Du commented on HDFS-4204:
----------------------------------
Shall we figure out why null or empty is passed here? Also, another bug is in
judging IP or hostname (it is not right to check the first char only, as
05host.xy.z is also a possible hostname). HADOOP-8372 contains a fix for trunk,
shall we backport to branch-1 as well?
> TestNNThroughputBenchmark fails in branch-1
> -------------------------------------------
>
> Key: HDFS-4204
> URL: https://issues.apache.org/jira/browse/HDFS-4204
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Tsz Wo (Nicholas), SZE
> Attachments: HDFS-4204.b1.001.patch
>
>
> {noformat}
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> at java.lang.String.charAt(String.java:686)
> at org.apache.hadoop.net.NetUtils.normalizeHostName(NetUtils.java:539)
> at org.apache.hadoop.net.NetUtils.normalizeHostNames(NetUtils.java:562)
> at
> org.apache.hadoop.net.CachedDNSToSwitchMapping.resolve(CachedDNSToSwitchMapping.java:88)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1047)
> ...
> at
> org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark$StatsDaemon.run(NNThroughputBenchmark.java:377)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira