hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4204) TestNNThroughputBenchmark fails in branch-1
Date Thu, 22 Nov 2012 01:52:59 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502528#comment-13502528
] 

Tsz Wo (Nicholas), SZE commented on HDFS-4204:
----------------------------------------------

{code}
+    if (name != null && !name.isEmpty()
+        && Character.digit(name.charAt(0), 10) != -1) { // FIXME 
       return name;
     } else {
{code}
If name == null or name.isEmpty(), it does not make sense to resolve it using InetAddress.
 How about simply return name in such case?
                
> 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

Mime
View raw message