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

Fix the tests FSMainOperationsBaseTest.java and F ileContextMainOperationsBaseTest.java to avoid potential test failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: fs, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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:

      if(file.getName().contains("x") || file.toString().contains("X"))
      

      It should be corrected to:

      if(file.getName().contains("x") || file.getName().contains("X"))
      

      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.

        Attachments

        1. HDFS-3459.patch
          2 kB
          madhukara phatak

          Issue Links

            Activity

              People

              • Assignee:
                phatak.dev madhukara phatak
                Reporter:
                masokan Mariappan Asokan
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: