hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2912) Jersey Tests failing with port in use
Date Sat, 29 Nov 2014 10:12:12 GMT

    [ https://issues.apache.org/jira/browse/YARN-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228700#comment-14228700
] 

Steve Loughran commented on YARN-2912:
--------------------------------------

code in {{GrizzlyWebTestContainerFactory}}
{code}
 return UriBuilder.fromUri("http://localhost/")
                .port(getPort(9998)).build();
{code}

The getPort logic uses 9998 as the port unless told otherwise
{code}
int getPort(int defaultPort) {
        String port = System.getProperty("jersey.test.port");
...
{code}



> Jersey Tests failing with port in use
> -------------------------------------
>
>                 Key: YARN-2912
>                 URL: https://issues.apache.org/jira/browse/YARN-2912
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>         Environment: jenkins on java 8
>            Reporter: Steve Loughran
>
> Jersey tests like TestNMWebServices apps are failing with port in use.
> The jersey test runner appears to always use the same port unless a system property is
set to point to a different one. Every test should really be changing that sysprop in a @Before
method



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message