Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6752

Avoid Address bind errors in TestDatanodeConfig#testMemlockLimit

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1, 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Above test failed due to Address Bind Exception.
      Set the HTTP port to ephemeral port in Configuration.

      java.net.BindException: Port in use: 0.0.0.0:50075
      	at sun.nio.ch.Net.bind(Native Method)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      	at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:853)
      	at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:794)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:473)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:856)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:379)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2046)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1933)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1980)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1970)
      	at org.apache.hadoop.hdfs.TestDatanodeConfig.testMemlockLimit(TestDatanodeConfig.java:146)

        Attachments

          Activity

            People

            • Assignee:
              vinayrpet Vinayakumar B
              Reporter:
              vinayrpet Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: