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

HttpServer sleeps with negative values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.20.2
    • None
    • None
    • Reviewed
    • 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 I Boudnik
        2. HADOOP-6428.0.20.patch
          0.0 kB
          Konstantin I Boudnik
        3. HADOOP-6428.patch
          0.9 kB
          Konstantin I Boudnik

        Issue Links

          Activity

            People

              cos Konstantin I Boudnik
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: