Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 99763950C for ; Wed, 23 May 2012 20:01:42 +0000 (UTC) Received: (qmail 71517 invoked by uid 500); 23 May 2012 20:01:42 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 71469 invoked by uid 500); 23 May 2012 20:01:42 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 71458 invoked by uid 99); 23 May 2012 20:01:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 20:01:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1768F141822 for ; Wed, 23 May 2012 20:01:42 +0000 (UTC) Date: Wed, 23 May 2012 20:01:41 +0000 (UTC) From: "Mariappan Asokan (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <637632144.12892.1337803302100.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (HDFS-3459) 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 Mariappan Asokan created HDFS-3459: -------------------------------------- Summary: Fix the tests FSMainOperationsBaseTest.java and F ileContextMainOperationsBaseTest.java to avoid potential test failure Key: HDFS-3459 URL: https://issues.apache.org/jira/browse/HDFS-3459 Project: Hadoop HDFS Issue Type: Bug Components: hdfs client Reporter: Mariappan Asokan 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