Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 3C8B19F14 for ; Tue, 29 May 2012 15:57:25 +0000 (UTC) Received: (qmail 30708 invoked by uid 500); 29 May 2012 15:57:24 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 30656 invoked by uid 500); 29 May 2012 15:57:24 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 30637 invoked by uid 99); 29 May 2012 15:57:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 15:57:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 8E28B14285A for ; Tue, 29 May 2012 15:57:24 +0000 (UTC) Date: Tue, 29 May 2012 15:57:24 +0000 (UTC) From: "Harsh J (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <263590835.11376.1338307044584.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (HADOOP-8444) Fix the tests FSMainOperationsBaseTest.java and F ileContextMainOperationsBaseTest.java to avoid potential test failure 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/HADOOP-8444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harsh J updated HADOOP-8444: ---------------------------- Resolution: Fixed Fix Version/s: 2.0.1-alpha Target Version/s: (was: 2.0.1-alpha, 3.0.0) Status: Resolved (was: Patch Available) Committed to trunk and branch-2. Thanks many for your contributions Mariappan and Madhukara! > Fix the tests FSMainOperationsBaseTest.java and F ileContextMainOperationsBaseTest.java to avoid potential test failure > ----------------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-8444 > URL: https://issues.apache.org/jira/browse/HADOOP-8444 > Project: Hadoop Common > Issue Type: Bug > Components: fs, test > Affects Versions: 2.0.0-alpha > Reporter: Mariappan Asokan > Fix For: 2.0.1-alpha > > Attachments: HDFS-3459.patch > > > The above mentioned tests have a path filter to filter file names that contain either the string "x" or "X". The filter contains the following if statement: > {code} > if(file.getName().contains("x") || file.toString().contains("X")) > {code} > It should be corrected to: > {code} > if(file.getName().contains("x") || file.getName().contains("X")) > {code} > Note that toString() returns the full path name. These tests will fail when a directory name contains the string "X" and the base file name does not. This was the case when we ran the tests on our system. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira