Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6359

NetworkTopology.chooseRandom(..) throws an IllegalArgumentException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When numOfDatanodes == 0, NetworkTopology.chooseRandom(..) throws an IllegalArgumentException.

      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)
              ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: