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

Reset RawLocalFileSystem.useDeprecatedFileStatus in TestLocalFileSystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • Reviewed

    Description

      A test written as part of HDFS-8767 uses Mockito's Whitebox#setInternalState to force the static RawLocalFileSystem#useDeprecatedFileStatus to false. On systems that don't implement a stat call (notably Windows), this leaves the class in a state where it will attempt the stat call anyway during subsequent tests. This ultimately causes tests to fail with UnsupportedOperationException.

      Attachments

        1. HADOOP-12438.001.patch
          0.6 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: