Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31CF21145E for ; Fri, 18 Jul 2014 15:55:07 +0000 (UTC) Received: (qmail 59560 invoked by uid 500); 18 Jul 2014 15:55:06 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 59522 invoked by uid 500); 18 Jul 2014 15:55:06 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 59505 invoked by uid 99); 18 Jul 2014 15:55:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2014 15:55:06 +0000 Date: Fri, 18 Jul 2014 15:55:06 +0000 (UTC) From: "Tsuyoshi OZAWA (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2319) Fix MiniKdc not close in TestRMWebServicesDelegationTokens.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)