Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-5718

TestHttpsFileSystem intermittently fails with Port in use error

    Details

    • Type: Test Test
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      From https://builds.apache.org/job/Hadoop-Hdfs-trunk/1634/testReport/junit/org.apache.hadoop.hdfs.web/TestHttpsFileSystem/org_apache_hadoop_hdfs_web_TestHttpsFileSystem/ :

      java.net.BindException: Port in use: localhost:50475
      	at java.net.PlainSocketImpl.socketBind(Native Method)
      	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
      	at java.net.ServerSocket.bind(ServerSocket.java:328)
      	at java.net.ServerSocket.<init>(ServerSocket.java:194)
      	at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106)
      	at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108)
      	at com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72)
      	at org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:478)
      	at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
      	at org.apache.hadoop.http.HttpServer.openListeners(HttpServer.java:973)
      	at org.apache.hadoop.http.HttpServer.start(HttpServer.java:914)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:412)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:769)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:315)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1846)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1746)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1203)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:673)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:342)
      	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:323)
      	at org.apache.hadoop.hdfs.web.TestHttpsFileSystem.setUp(TestHttpsFileSystem.java:64)
      

      This could have been caused by concurrent test(s).

        Activity

        Hide
        Ted Yu added a comment -
        Show
        Ted Yu added a comment - Happened again: https://builds.apache.org/job/Hadoop-Hdfs-trunk/1640

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development