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

Tsuyoshi OZAWA commented on YARN-2319:
--------------------------------------

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}


> Fix MiniKdc not close in TestRMWebServicesDelegationTokens.java
> ---------------------------------------------------------------
>
>                 Key: YARN-2319
>                 URL: https://issues.apache.org/jira/browse/YARN-2319
>             Project: Hadoop YARN
>          Issue Type: Test
>          Components: resourcemanager
>    Affects Versions: 2.6.0
>            Reporter: Wenwu Peng
>            Assignee: Wenwu Peng
>         Attachments: YARN-2319.0.patch
>
>
> MiniKdc only invoke start method not stop in 
> TestRMWebServicesDelegationTokens.java
> {code}
> testMiniKDC.start();
> {code}



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

Reply via email to