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

HttpServer sleeps with negative values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Corrected arithmetic error that made sleep times less than zero.

      Description

      In this test report

      java.io.IOException: Problem starting http server
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:521)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:369)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.activate(NameNode.java:315)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:306)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:412)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:406)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1235)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:287)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:131)
      	at org.apache.hadoop.hdfs.TestSmallBlock.testSmallBlock(TestSmallBlock.java:98)
      	at org.apache.hadoop.hdfs.TestSmallBlock.testSmallBlockSimulatedStorage(TestSmallBlock.java:112)
      Caused by: java.lang.IllegalArgumentException: timeout value is negative
      	at java.lang.Thread.sleep(Native Method)
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:484)
      

        Attachments

        1. HADOOP-6428.0.20.patch
          0.9 kB
          Konstantin Boudnik
        2. HADOOP-6428.0.20.patch
          0.0 kB
          Konstantin Boudnik
        3. HADOOP-6428.patch
          0.9 kB
          Konstantin Boudnik

          Issue Links

            Activity

              People

              • Assignee:
                cos Konstantin Boudnik
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: