Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9464

In test*Conf.xml regexp replication factor set to 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.0.4-alpha
    • None
    • test
    • None

    Description

      In some Hadoop smoke tests (testHDFSConf.xml), in expected output for RegexpComparator, a replication factor is hard coded to 1,

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

      such as the first "1" in

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

      .

      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.

      Attachments

        1. HADOOP-9464.patch
          339 kB
          Anatoli Fomenko

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anatoli.fomenko Anatoli Fomenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: