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

TestFileUtil fails on Windows due to bad permission assertions.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: fs, test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      TestFileUtil contains some assertions that check java.io.File#canRead. These assertions fail on Windows. The java.io.File methods for checking permissions are known to be buggy in JDK 6. We can replace these calls with our own custom FileUtil#canRead, which is correct on all platforms.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: