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

Tsuyoshi OZAWA commented on YARN-2304:
--------------------------------------

IIUC, the test failure is caused by JerseyTest. JerseyTest's constructor -> 
getContainer() -> getBaseURI always returns the result of 
UriBuilder.fromUri("http://localhost/";).port(getPort(9998)).build(). If the 
another test jobs are running at the same time, some of them fail to bind port 
and tests fail as a result.

{code}
    public JerseyTest(AppDescriptor ad) throws TestContainerException {
        this.tc = getContainer(ad, getTestContainerFactory());
        this.client = getClient(tc, ad);
    }

    /**
     * Returns the base URI of the application.
     * @return The base URI of the application
     */
    protected URI getBaseURI() {
        return UriBuilder.fromUri("http://localhost/";)
                .port(getPort(9998)).build();
    }
{code}

> TestRMWebServices* fails intermittently
> ---------------------------------------
>
>                 Key: YARN-2304
>                 URL: https://issues.apache.org/jira/browse/YARN-2304
>             Project: Hadoop YARN
>          Issue Type: Test
>            Reporter: Tsuyoshi OZAWA
>         Attachments: test-failure-log-RMWeb.txt
>
>
> The test fails intermittently because of bind exception.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to