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

TestFileTruncate fails intermittently with BindException

    Details

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

      Description

      https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/478/#showFailuresLink

      java.net.BindException: Problem binding to [localhost:8020] 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:414)
      	at sun.nio.ch.Net.bind(Net.java:406)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.apache.hadoop.ipc.Server.bind(Server.java:469)
      	at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:646)
      	at org.apache.hadoop.ipc.Server.<init>(Server.java:2399)
      	at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:945)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:535)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:510)
      	at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:787)
      	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:358)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:692)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:630)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:833)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:812)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1505)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNode(MiniDFSCluster.java:1248)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.configureNameService(MiniDFSCluster.java:1017)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:889)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:821)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:480)
      	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:439)
      	at org.apache.hadoop.hdfs.server.namenode.TestFileTruncate.setUp(TestFileTruncate.java:107)
      
      1. HDFS-9224.patch
        1 kB
        Brahma Reddy Battula
      2. HDFS-9224-002.patch
        2 kB
        Brahma Reddy Battula

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #488 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/488/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #488 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/488/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2426 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2426/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2426 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2426/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #1253 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1253/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #1253 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1253/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #528 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/528/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #528 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/528/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2462 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2462/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2462 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2462/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #516 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/516/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #516 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/516/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8615 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8615/)
          HDFS-9224. TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132)

          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8615 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8615/ ) HDFS-9224 . TestFileTruncate fails intermittently with BindException (vinayakumarb: rev 69b025dbbaa44395e49d1c04b90e1f65f0fc1132) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          vinayrpet Vinayakumar B added a comment -

          Committed to trunk and branch-2.
          Thanks Brahma Reddy Battula for the contribution

          Show
          vinayrpet Vinayakumar B added a comment - Committed to trunk and branch-2. Thanks Brahma Reddy Battula for the contribution
          Hide
          vinayrpet Vinayakumar B added a comment -

          Thanks Brahma Reddy Battula
          +1 for latest patch,
          Will commit shortly

          Show
          vinayrpet Vinayakumar B added a comment - Thanks Brahma Reddy Battula +1 for latest patch, Will commit shortly
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Test Case failures and Release Audit warnings are unrelated this patch..Kindly Review..

          Show
          brahmareddy Brahma Reddy Battula added a comment - Test Case failures and Release Audit warnings are unrelated this patch..Kindly Review..
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          0 pre-patch 8m 34s Pre-patch trunk compilation is healthy.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 tests included 0m 0s The patch appears to include 1 new or modified test files.
          +1 javac 8m 51s There were no new javac warning messages.
          -1 release audit 0m 18s The applied patch generated 1 release audit warnings.
          +1 checkstyle 1m 31s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 39s mvn install still works.
          +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse.
          +1 findbugs 2m 39s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 native 1m 7s Pre-build of native portion
          -1 hdfs tests 231m 7s Tests failed in hadoop-hdfs.
              256m 24s  



          Reason Tests
          Failed unit tests hadoop.hdfs.TestReplaceDatanodeOnFailure
            hadoop.hdfs.TestRollingUpgrade
            hadoop.hdfs.server.namenode.ha.TestDFSUpgradeWithHA



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12766077/HDFS-9224-002.patch
          Optional Tests javac unit findbugs checkstyle
          git revision trunk / 049c6e8
          Release Audit https://builds.apache.org/job/PreCommit-HDFS-Build/12931/artifact/patchprocess/patchReleaseAuditProblems.txt
          hadoop-hdfs test log https://builds.apache.org/job/PreCommit-HDFS-Build/12931/artifact/patchprocess/testrun_hadoop-hdfs.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12931/testReport/
          Java 1.7.0_55
          uname Linux asf909.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12931/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 8m 34s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. +1 tests included 0m 0s The patch appears to include 1 new or modified test files. +1 javac 8m 51s There were no new javac warning messages. -1 release audit 0m 18s The applied patch generated 1 release audit warnings. +1 checkstyle 1m 31s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 39s mvn install still works. +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse. +1 findbugs 2m 39s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 native 1m 7s Pre-build of native portion -1 hdfs tests 231m 7s Tests failed in hadoop-hdfs.     256m 24s   Reason Tests Failed unit tests hadoop.hdfs.TestReplaceDatanodeOnFailure   hadoop.hdfs.TestRollingUpgrade   hadoop.hdfs.server.namenode.ha.TestDFSUpgradeWithHA Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12766077/HDFS-9224-002.patch Optional Tests javac unit findbugs checkstyle git revision trunk / 049c6e8 Release Audit https://builds.apache.org/job/PreCommit-HDFS-Build/12931/artifact/patchprocess/patchReleaseAuditProblems.txt hadoop-hdfs test log https://builds.apache.org/job/PreCommit-HDFS-Build/12931/artifact/patchprocess/testrun_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12931/testReport/ Java 1.7.0_55 uname Linux asf909.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12931/console This message was automatically generated.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Firstly let's try default port,if not free,try for free port. uploaded the patch for same.

          Show
          brahmareddy Brahma Reddy Battula added a comment - Firstly let's try default port,if not free,try for free port. uploaded the patch for same.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          testcase failures and release auditwarnings are unrelated..Kindly review...

          Show
          brahmareddy Brahma Reddy Battula added a comment - testcase failures and release auditwarnings are unrelated..Kindly review...
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          0 pre-patch 8m 53s Pre-patch trunk compilation is healthy.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 tests included 0m 0s The patch appears to include 1 new or modified test files.
          +1 javac 8m 37s There were no new javac warning messages.
          -1 release audit 0m 17s The applied patch generated 1 release audit warnings.
          +1 checkstyle 1m 31s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 37s mvn install still works.
          +1 eclipse:eclipse 0m 36s The patch built with eclipse:eclipse.
          +1 findbugs 2m 41s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 native 1m 10s Pre-build of native portion
          -1 hdfs tests 193m 24s Tests failed in hadoop-hdfs.
              218m 50s  



          Reason Tests
          Failed unit tests hadoop.hdfs.server.namenode.TestFSNamesystem



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12765981/HDFS-9224.patch
          Optional Tests javac unit findbugs checkstyle
          git revision trunk / 7e2c971
          Release Audit https://builds.apache.org/job/PreCommit-HDFS-Build/12922/artifact/patchprocess/patchReleaseAuditProblems.txt
          hadoop-hdfs test log https://builds.apache.org/job/PreCommit-HDFS-Build/12922/artifact/patchprocess/testrun_hadoop-hdfs.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12922/testReport/
          Java 1.7.0_55
          uname Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12922/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 8m 53s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. +1 tests included 0m 0s The patch appears to include 1 new or modified test files. +1 javac 8m 37s There were no new javac warning messages. -1 release audit 0m 17s The applied patch generated 1 release audit warnings. +1 checkstyle 1m 31s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 37s mvn install still works. +1 eclipse:eclipse 0m 36s The patch built with eclipse:eclipse. +1 findbugs 2m 41s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 native 1m 10s Pre-build of native portion -1 hdfs tests 193m 24s Tests failed in hadoop-hdfs.     218m 50s   Reason Tests Failed unit tests hadoop.hdfs.server.namenode.TestFSNamesystem Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12765981/HDFS-9224.patch Optional Tests javac unit findbugs checkstyle git revision trunk / 7e2c971 Release Audit https://builds.apache.org/job/PreCommit-HDFS-Build/12922/artifact/patchprocess/patchReleaseAuditProblems.txt hadoop-hdfs test log https://builds.apache.org/job/PreCommit-HDFS-Build/12922/artifact/patchprocess/testrun_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12922/testReport/ Java 1.7.0_55 uname Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12922/console This message was automatically generated.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Uploaded the patch to get random port.. Kindly review..

          Show
          brahmareddy Brahma Reddy Battula added a comment - Uploaded the patch to get random port.. Kindly review..

            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