Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3433

Jersey tests failing with Port in Use -again

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: build, test
    • Labels:
      None
    • Environment:

      ASF Jenkins

      Description

      ASF Jenkins jersey tests failing with port in use exceptions.

      The YARN-2912 patch tried to fix it, but it defaults to port 9998 and doesn't scan for a spare port —so is too brittle on a busy server

      1. YARN-3433.patch
        1 kB
        Brahma Reddy Battula

        Issue Links

          Activity

          Hide
          stevel@apache.org Steve Loughran added a comment -
          com.sun.jersey.test.framework.spi.container.TestContainerException: java.net.BindException: Address already in use
          	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.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:413)
          	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:384)
          	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:375)
          	at org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:549)
          	at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:255)
          	at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:326)
          	at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:343)
          	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.instantiateGrizzlyWebServer(GrizzlyWebTestContainerFactory.java:219)
          	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:129)
          	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:86)
          	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory.create(GrizzlyWebTestContainerFactory.java:79)
          	at com.sun.jersey.test.framework.JerseyTest.getContainer(JerseyTest.java:342)
          	at com.sun.jersey.test.framework.JerseyTest.<init>(JerseyTest.java:217)
          	at org.apache.hadoop.yarn.webapp.JerseyTestBase.<init>(JerseyTestBase.java:27)
          	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesApps.<init>(TestRMWebServicesApps.java:111)
          
          Show
          stevel@apache.org Steve Loughran added a comment - com.sun.jersey.test.framework.spi.container.TestContainerException: java.net.BindException: Address already in use 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.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:413) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:384) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:375) at org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:549) at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:255) at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:326) at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:343) at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.instantiateGrizzlyWebServer(GrizzlyWebTestContainerFactory.java:219) at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:129) at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:86) at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory.create(GrizzlyWebTestContainerFactory.java:79) at com.sun.jersey.test.framework.JerseyTest.getContainer(JerseyTest.java:342) at com.sun.jersey.test.framework.JerseyTest.<init>(JerseyTest.java:217) at org.apache.hadoop.yarn.webapp.JerseyTestBase.<init>(JerseyTestBase.java:27) at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesApps.<init>(TestRMWebServicesApps.java:111)
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Attached the patch.. Kindly Review..

          Show
          brahmareddy Brahma Reddy Battula added a comment - Attached the patch.. Kindly Review..
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          -1 pre-patch 5m 46s Findbugs (version ) appears to be broken on trunk.
          +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 7m 41s There were no new javac warning messages.
          +1 release audit 0m 20s The applied patch does not increase the total number of release audit warnings.
          +1 checkstyle 0m 28s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 26s mvn install still works.
          +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse.
          +1 findbugs 1m 32s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 yarn tests 1m 57s Tests passed in hadoop-yarn-common.
              19m 45s  



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12754383/YARN-3433.patch
          Optional Tests javac unit findbugs checkstyle
          git revision trunk / 9b68577
          hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-YARN-Build/9017/artifact/patchprocess/testrun_hadoop-yarn-common.txt
          Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9017/testReport/
          Java 1.7.0_55
          uname Linux asf905.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-YARN-Build/9017/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment -1 pre-patch 5m 46s Findbugs (version ) appears to be broken on trunk. +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 7m 41s There were no new javac warning messages. +1 release audit 0m 20s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 28s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 26s mvn install still works. +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse. +1 findbugs 1m 32s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 yarn tests 1m 57s Tests passed in hadoop-yarn-common.     19m 45s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12754383/YARN-3433.patch Optional Tests javac unit findbugs checkstyle git revision trunk / 9b68577 hadoop-yarn-common test log https://builds.apache.org/job/PreCommit-YARN-Build/9017/artifact/patchprocess/testrun_hadoop-yarn-common.txt Test Results https://builds.apache.org/job/PreCommit-YARN-Build/9017/testReport/ Java 1.7.0_55 uname Linux asf905.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-YARN-Build/9017/console This message was automatically generated.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Makrking as critical,recent pre-commit build has failing because address already in use..

          https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2336/

          Show
          brahmareddy Brahma Reddy Battula added a comment - Makrking as critical,recent pre-commit build has failing because address already in use.. https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2336/
          Hide
          stevel@apache.org Steve Loughran added a comment -

          +1 —committed, thanks!

          Show
          stevel@apache.org Steve Loughran added a comment - +1 —committed, thanks!
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8465 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8465/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8465 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8465/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #403 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/403/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #403 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/403/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #1137 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1137/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #1137 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1137/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java hadoop-yarn-project/CHANGES.txt
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Steve Loughran thanks for committing!!

          Show
          brahmareddy Brahma Reddy Battula added a comment - Steve Loughran thanks for committing!!
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2343 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2343/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/CHANGES.txt
          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2343 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2343/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/CHANGES.txt hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #396 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/396/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #396 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/396/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #379 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/379/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #379 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/379/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java hadoop-yarn-project/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2319 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2319/)
          YARN-3433. Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a)

          • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java
          • hadoop-yarn-project/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2319 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2319/ ) YARN-3433 . Jersey tests failing with Port in Use -again. (Brahma Reddy Battula) (stevel: rev bf2f2b4fc436ea5990e6fc78eb18091b9458e75a) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/JerseyTestBase.java hadoop-yarn-project/CHANGES.txt
          Hide
          bibinchundatt Bibin A Chundatt added a comment -

          Hi Steve Loughran

          The same failed with port in use again during one of ci build
          https://builds.apache.org/job/PreCommit-YARN-Build/9232/testReport

          Show
          bibinchundatt Bibin A Chundatt added a comment - Hi Steve Loughran The same failed with port in use again during one of ci build https://builds.apache.org/job/PreCommit-YARN-Build/9232/testReport

            People

            • Assignee:
              brahmareddy Brahma Reddy Battula
              Reporter:
              stevel@apache.org Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development