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
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.