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

Introduce common utils for File#setReadable/Writable/Executable and File#canRead/Write/Execute that work cross-platform

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-beta
    • None
    • None
    • Reviewed

    Description

      So far, we've seen many unittest and product bugs in Hadoop on Windows because Java's APIs that manipulate with permissions do not work as expected. We've addressed many of these problems on one-by-one basis (by either changing code a bit or disabling the test). While debugging the remaining unittest failures we continue to run into the same patterns of problems, and instead of addressing them one-by-one, I propose that we expose a set of equivalent wrapper APIs that will work well for all platforms.

      Scanning thru the codebase, this will actually be a simple change as there are very few places that use File#setReadable/Writable/Executable and File#canRead/Write/Execute (5 files in Common, 9 files in HDFS).

      HADOOP-8973 contains additional context on the problem.

      Attachments

        1. HADOOP-9413.commonfileutils.5.patch
          25 kB
          Ivan Mitic
        2. HADOOP-9413.commonfileutils.4.patch
          25 kB
          Ivan Mitic
        3. HADOOP-9413.commonfileutils.3.patch
          22 kB
          Ivan Mitic
        4. HADOOP-9413.commonfileutils.2.patch
          22 kB
          Ivan Mitic
        5. HADOOP-9413.commonfileutils.patch
          17 kB
          Ivan Mitic

        Issue Links

        Activity

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

          People

            ivanmi Ivan Mitic
            ivanmi Ivan Mitic
            Votes:
            0 Vote for this issue
            Watchers:
            7 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment