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

fix the TestDFSUpgradeWithHA due to BindException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • Reviewed

    Description

      see https://builds.apache.org/job/PreCommit-HDFS-Build/9092//testReport/org.apache.hadoop.hdfs.server.namenode.ha/TestDFSUpgradeWithHA/testNfsUpgrade/ :
      Error Message

      Port in use: localhost:57896
      Stacktrace

      java.net.BindException: Port in use: localhost:57896
      at sun.nio.ch.Net.bind0(Native Method)
      at sun.nio.ch.Net.bind(Net.java:444)
      at sun.nio.ch.Net.bind(Net.java:436)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
      at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:868)
      at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:809)
      at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:704)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:591)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:763)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:747)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1443)
      at org.apache.hadoop.hdfs.MiniDFSCluster.restartNameNode(MiniDFSCluster.java:1815)
      at org.apache.hadoop.hdfs.MiniDFSCluster.restartNameNode(MiniDFSCluster.java:1796)
      at org.apache.hadoop.hdfs.server.namenode.ha.TestDFSUpgradeWithHA.testNfsUpgrade(TestDFSUpgradeWithHA.java:285)

      Attachments

        1. HDFS-7553-001.txt
          0.8 kB
          Liang Xie
        2. HDFS-7553.002.patch
          1 kB
          Xiao Chen
        3. HDFS-7553.repro.patch
          7 kB
          Xiao Chen
        4. HDFS-7553.03.patch
          3 kB
          Xiao Chen
        5. HDFS-7553.04.patch
          5 kB
          Xiao Chen
        6. HDFS-7553.05.patch
          5 kB
          Xiao Chen
        7. HDFS-7553-branch-2.05.patch
          5 kB
          Chris Nauroth

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            xiaochen Xiao Chen
            xieliang007 Liang Xie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment