Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5998

TestHDFSCLI tests will fail if machine user names are not the combination of alphanumeric

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • test
    • None

    Description

      From my jenkins results, I have seen the following failures
      Testing mode: test

      2014-02-21 19:45:07,448 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(212)) - 
      2014-02-21 19:45:07,448 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(213)) -              Overall result: --- FAIL ---
      2014-02-21 19:45:07,448 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(221)) -                # Tests pass: 427 (69%)
      2014-02-21 19:45:07,448 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(223)) -                # Tests fail: 186 (30%)
      2014-02-21 19:45:07,448 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(227)) -          # Validations done: 1686 (each test may do multiple validations)
      ==========================================================
      
      Regex details:
      2014-02-21 19:45:07,300 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(177)) -                  Comparator: [RegexpComparator]
      2014-02-21 19:45:07,300 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(179)) -          Comparision result:   [fail]
      2014-02-21 19:45:07,301 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(181)) -             Expected output:   [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/dir2/file0]
      2014-02-21 19:45:07,301 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(183)) -               Actual output:   [drwxr-xr-x   - ec2-user supergroup          0 2014-02-21 19:44 /dir0/dir1
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir0/dir1/file1
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir0/dir1/file2
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir0/file0
      drwxr-xr-x   - ec2-user supergroup          0 2014-02-21 19:44 /dir2/dir1
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir2/dir1/file1
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir2/dir1/file2
      -rw-r--r--   1 ec2-user supergroup          0 2014-02-21 19:44 /dir2/file0
      ]
      

      Here in the regex related tests having the pattern for user name as [a-zA-z0-9]
      But my jenkins has username as ec2-user. Since it has '-', it does not match the regex pattern expected. Replacing with correct username regex will solve this issue. Otherwise jenkins machine username should be only with the combination of alphanumberic.

      Attachments

        Issue Links

          Activity

            People

              dasha.boudnik Dasha Boudnik
              umamaheswararao Uma Maheswara Rao G
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: