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 5CCCE11038 for ; Sun, 7 Sep 2014 13:48:29 +0000 (UTC) Received: (qmail 6182 invoked by uid 500); 7 Sep 2014 13:48:29 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 6140 invoked by uid 500); 7 Sep 2014 13:48:29 -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 6127 invoked by uid 99); 7 Sep 2014 13:48:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2014 13:48:29 +0000 Date: Sun, 7 Sep 2014 13:48:29 +0000 (UTC) From: "Hudson (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2519) Credential Provider related unit tests failed on Windows 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-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124899#comment-14124899 ] Hudson commented on YARN-2519: ------------------------------ FAILURE: Integrated in Hadoop-Hdfs-trunk #1864 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1864/]) YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao. (cnauroth: rev cbea1b10efd871d04c648af18449dc724685db74) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/util/TestWebAppUtils.java * hadoop-yarn-project/CHANGES.txt > Credential Provider related unit tests failed on Windows > -------------------------------------------------------- > > Key: YARN-2519 > URL: https://issues.apache.org/jira/browse/YARN-2519 > Project: Hadoop YARN > Issue Type: Test > Components: webapp > Affects Versions: 2.4.1 > Reporter: Xiaoyu Yao > Assignee: Xiaoyu Yao > Fix For: 2.6.0 > > Attachments: YARN-2519.0.patch > > > Reported by: Xiaomara and investigated by Chris Nauroth. > The credential provider related unit tests failed on Windows. The tests try to set up a URI by taking the build test directory and concatenating it with other strings containing the rest of the URI format, i.e.: > {code} > public void testFactory() throws Exception { > Configuration conf = new Configuration(); > conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, > UserProvider.SCHEME_NAME + ":///," + > JavaKeyStoreProvider.SCHEME_NAME + "://file" + tmpDir + "/test.jks"); > {code} > This logic is incorrect on Windows, because the file path separator will be '\', which violates URI syntax. Forward slash is not permitted. > The proper fix is to always do path/URI construction through the org.apache.hadoop.fs.Path class, specifically using the constructors that take explicit parent and child arguments. > The affected unit tests are: > {code} > * TestWebAppUtils > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)