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

TestFileUtil fails on Windows due to bad permission assertions.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.5.0
    • fs, test
    • None
    • 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

        1. HADOOP-10495.1.patch
          1 kB
          Chris Nauroth

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment