hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mariappan Asokan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3459) Fix the tests FSMainOperationsBaseTest.java and F ileContextMainOperationsBaseTest.java to avoid potential test failure
Date Thu, 24 May 2012 16:34:29 GMT

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

Mariappan Asokan commented on HDFS-3459:
----------------------------------------

Hi Madhukara,
  Thanks for posting the patch.  I was going to do it myself.  However, I was not sure which
release it should be targeted to.  Perhaps, some committer can push this patch and update
the target releases.

Thanks.
-- Asokan

                
> 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
>         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

        

Mime
View raw message