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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • fs, test
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: