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

TestHttpsFileSystem should use a random port to avoid binding error during testing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.4.0
    • test
    • None
    • Reviewed

    Description

      org.apache.hadoop.hdfs.web.TestHttpsFileSystem.org.apache.hadoop.hdfs.web.TestHttpsFileSystem
      Failing for the past 1 build (Since Failed#5900 )
      Took 2.7 sec.
      Error Message
      
      Port in use: localhost:50475
      
      Stacktrace
      
      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:413)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:770)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:316)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1847)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1747)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1217)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:683)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:351)
      	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:332)
      	at org.apache.hadoop.hdfs.web.TestHttpsFileSystem.setUp(TestHttpsFileSystem.java:64)
      

      Attachments

        1. HDFS-5791.000.patch
          1 kB
          Haohui Mai

        Activity

          People

            wheat9 Haohui Mai
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: