hadoop-common-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] (HADOOP-6359) NetworkTopology.chooseRandom(..) throws an IllegalArgumentException
Date Wed, 11 Feb 2015 22:14:12 GMT

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

Tsz Wo Nicholas Sze commented on HADOOP-6359:
---------------------------------------------

Rakesh, thanks for pointing it out.  This was fixed as a part of HDFS-5939.

> NetworkTopology.chooseRandom(..) throws an IllegalArgumentException
> -------------------------------------------------------------------
>
>                 Key: HADOOP-6359
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6359
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>              Labels: newbie
>
> When numOfDatanodes == 0, NetworkTopology.chooseRandom(..) throws an IllegalArgumentException.
> {noformat}
> 2009-09-30 00:12:50,768 ERROR org.mortbay.log: /nn_browsedfscontent.jsp
> java.lang.IllegalArgumentException: n must be positive
>         at java.util.Random.nextInt(Random.java:250)
>         at org.apache.hadoop.net.NetworkTopology.chooseRandom(NetworkTopology.java:536)
>         at org.apache.hadoop.net.NetworkTopology.chooseRandom(NetworkTopology.java:504)
>         ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message