You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org> on 2015/04/10 21:24:15 UTC

[jira] [Updated] (HADOOP-9464) In test*Conf.xml regexp replication factor set to 1

     [ https://issues.apache.org/jira/browse/HADOOP-9464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-9464:
--------------------------------------------
    Fix Version/s:     (was: 2.7.0)

Removing Fix-version. Please use Target-version for the intended release and let committers set the fix-version at commit time.

> In test*Conf.xml regexp replication factor set to 1
> ---------------------------------------------------
>
>                 Key: HADOOP-9464
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9464
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.4-alpha
>            Reporter: Anatoli Fomenko
>            Priority: Critical
>         Attachments: HADOOP-9464.patch
>
>
> In some Hadoop smoke tests (testHDFSConf.xml), in expected output for RegexpComparator, a replication factor is hard coded to 1,
>  
> {noformat}
>     <test> <!-- TESTED -->
>       <description>ls: file using absolute path</description>
>       <test-commands>
>         <command>-fs NAMENODE -touchz /file1</command>
>         <command>-fs NAMENODE -ls /file1</command>
>       </test-commands>
>       <cleanup-commands>
>         <command>-fs NAMENODE -rm /file1</command>
>       </cleanup-commands>
>       <comparators>
>         <comparator>
>           <type>TokenComparator</type>
>           <expected-output>Found 1 items</expected-output>
>         </comparator>
>         <comparator>
>           <type>RegexpComparator</type>
>           <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file1</expected-output>
>         </comparator>
>       </comparators>
>     </test>
> {noformat}
> such as the first "1" in 
> {noformat}
> <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file1</expected-output>
> {noformat}.
> We found in Bigtop testing on a standalone cluster that such tests fail with a default replication factor. 
> Please update the regexp in test*Conf.xml files to add a flexibility for a replication factor that would allow to execute these tests with a variety of clusters, or inside the Bigtop.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)