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

Reset RawLocalFileSystem.useDeprecatedFileStatus in TestLocalFileSystem

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: