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

TestAppendSnapshotTruncate fails with bind exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      java.net.BindException: Problem binding to [localhost:9820] java.net.BindException: Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:433)
      	at sun.nio.ch.Net.bind(Net.java:425)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.apache.hadoop.ipc.Server.bind(Server.java:535)
      	at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:919)
      	at org.apache.hadoop.ipc.Server.<init>(Server.java:2667)
      	at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:959)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:367)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:342)
      	at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:801)
      	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:434)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:796)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:723)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:937)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:916)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1633)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNode(MiniDFSCluster.java:1263)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.configureNameService(MiniDFSCluster.java:1032)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:907)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:839)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:491)
      	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:450)
      	at org.apache.hadoop.hdfs.TestAppendSnapshotTruncate.startUp(TestAppendSnapshotTruncate.java:95)
       Standard Output	
      
      1. HDFS-11129.000.patch
        1 kB
        Brahma Reddy Battula

        Activity

        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        I don't think it's necessary to specify the name node RPC port.

        Keeping a specific port during a restart is needed when we expect something (clients, DataNodes) to be looking for the NameNode at that exact port.

        there is restart in TestAppendSnapshotTruncate so the default port should work correctly here..

        Uploading the patch for same..

        Show
        brahmareddy Brahma Reddy Battula added a comment - I don't think it's necessary to specify the name node RPC port. Keeping a specific port during a restart is needed when we expect something (clients, DataNodes) to be looking for the NameNode at that exact port. there is restart in TestAppendSnapshotTruncate so the default port should work correctly here.. Uploading the patch for same..
        Hide
        hadoopqa Hadoop QA added a comment -
        -1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 13s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
        +1 mvninstall 7m 9s trunk passed
        +1 compile 0m 50s trunk passed
        +1 checkstyle 0m 27s trunk passed
        +1 mvnsite 0m 58s trunk passed
        +1 mvneclipse 0m 12s trunk passed
        +1 findbugs 1m 47s trunk passed
        +1 javadoc 0m 40s trunk passed
        +1 mvninstall 0m 50s the patch passed
        +1 compile 0m 49s the patch passed
        +1 javac 0m 49s the patch passed
        +1 checkstyle 0m 26s the patch passed
        +1 mvnsite 0m 54s the patch passed
        +1 mvneclipse 0m 10s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 1m 55s the patch passed
        +1 javadoc 0m 37s the patch passed
        -1 unit 58m 11s hadoop-hdfs in the patch failed.
        +1 asflicense 0m 18s The patch does not generate ASF License warnings.
        77m 40s



        Reason Tests
        Failed junit tests hadoop.hdfs.tools.TestDelegationTokenFetcher
          hadoop.hdfs.server.namenode.ha.TestDFSUpgradeWithHA
          hadoop.hdfs.tools.TestDFSAdmin



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:e809691
        JIRA Issue HDFS-11129
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838563/HDFS-11129.000.patch
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux 49e58044f17e 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / 503e73e
        Default Java 1.8.0_101
        findbugs v3.0.0
        unit https://builds.apache.org/job/PreCommit-HDFS-Build/17528/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
        Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17528/testReport/
        modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17528/console
        Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 13s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 7m 9s trunk passed +1 compile 0m 50s trunk passed +1 checkstyle 0m 27s trunk passed +1 mvnsite 0m 58s trunk passed +1 mvneclipse 0m 12s trunk passed +1 findbugs 1m 47s trunk passed +1 javadoc 0m 40s trunk passed +1 mvninstall 0m 50s the patch passed +1 compile 0m 49s the patch passed +1 javac 0m 49s the patch passed +1 checkstyle 0m 26s the patch passed +1 mvnsite 0m 54s the patch passed +1 mvneclipse 0m 10s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 55s the patch passed +1 javadoc 0m 37s the patch passed -1 unit 58m 11s hadoop-hdfs in the patch failed. +1 asflicense 0m 18s The patch does not generate ASF License warnings. 77m 40s Reason Tests Failed junit tests hadoop.hdfs.tools.TestDelegationTokenFetcher   hadoop.hdfs.server.namenode.ha.TestDFSUpgradeWithHA   hadoop.hdfs.tools.TestDFSAdmin Subsystem Report/Notes Docker Image:yetus/hadoop:e809691 JIRA Issue HDFS-11129 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838563/HDFS-11129.000.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 49e58044f17e 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 503e73e Default Java 1.8.0_101 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HDFS-Build/17528/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17528/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17528/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        liuml07 Mingliang Liu added a comment -

        +1

        It's a good idea to revisit quickly other places that have this problem. Luckily I did not find any other. If any, we can address it separately.

        Show
        liuml07 Mingliang Liu added a comment - +1 It's a good idea to revisit quickly other places that have this problem. Luckily I did not find any other. If any, we can address it separately.
        Hide
        liuml07 Mingliang Liu added a comment -

        Committed to trunk through branch-2.8 branches. Thanks for your contribution, Brahma Reddy Battula.

        Show
        liuml07 Mingliang Liu added a comment - Committed to trunk through branch-2.8 branches. Thanks for your contribution, Brahma Reddy Battula .
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10828 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10828/)
        HDFS-11129. TestAppendSnapshotTruncate fails with bind exception. (liuml07: rev 2ee18fc15e60dff9a42a80eb0c30e8bd8cedc26a)

        • (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAppendSnapshotTruncate.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10828 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10828/ ) HDFS-11129 . TestAppendSnapshotTruncate fails with bind exception. (liuml07: rev 2ee18fc15e60dff9a42a80eb0c30e8bd8cedc26a) (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAppendSnapshotTruncate.java
        Hide
        linyiqun Yiqun Lin added a comment -

        Hi Brahma Reddy Battula, I found another bind exception similar to this JIRA. i have filed another JIRA HDFS-11134 to have a quick fix. Are you interested in having a review? Thanks.

        Show
        linyiqun Yiqun Lin added a comment - Hi Brahma Reddy Battula , I found another bind exception similar to this JIRA. i have filed another JIRA HDFS-11134 to have a quick fix. Are you interested in having a review? Thanks.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Mingliang Liu thanks for review and commit.

        Yiqun Lin Commented in HDFS-11134.

        Show
        brahmareddy Brahma Reddy Battula added a comment - Mingliang Liu thanks for review and commit. Yiqun Lin Commented in HDFS-11134 .

          People

          • Assignee:
            brahmareddy Brahma Reddy Battula
            Reporter:
            brahmareddy Brahma Reddy Battula
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development