Hadoop Common
  1. Hadoop Common
  2. HADOOP-5654

TestReplicationPolicy.<init> fails on java.net.BindException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.1
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      at org.apache.hadoop.http.HttpServer.start(HttpServer.java:422)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:330)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.activate(NameNode.java:277)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:269)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:373)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:367)
      at org.apache.hadoop.hdfs.server.namenode.TestReplicationPolicy.<clinit>(TestReplicationPolicy.java:58)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:335)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

      Looks that it was caused by another running unit test. They used the same http server port.

        Activity

        Hairong Kuang created issue -
        Hairong Kuang made changes -
        Field Original Value New Value
        Attachment testReplicationPolicy.patch [ 12405183 ]
        Tsz Wo Nicholas Sze made changes -
        Hadoop Flags [Reviewed]
        Component/s test [ 12311440 ]
        Component/s dfs [ 12310710 ]
        Hairong Kuang made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hairong Kuang made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Assignee Hairong Kuang [ hairong ]
        Fix Version/s 0.20.1 [ 12313866 ]
        Fix Version/s 0.21.0 [ 12313563 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Hairong Kuang
            Reporter:
            Hairong Kuang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development