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

Refactor RawLocalFileSystem#rename for improved testability.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1-win, 1.3.0, 2.1.1-beta, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs, test
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      RawLocalFileSystem#rename contains fallback logic to provide POSIX rename behavior on platforms where java.io.File#renameTo fails. The method returns early if java.io.File#renameTo succeeds, so test runs may not cover the fallback logic depending on the platform.

        Attachments

        1. HADOOP-9805.001.patch
          6 kB
          Jean-Pierre Matsumoto
        2. HADOOP-9805.002.patch
          6 kB
          Jean-Pierre Matsumoto
        3. HADOOP-9805.003.patch
          6 kB
          Jean-Pierre Matsumoto

          Issue Links

            Activity

              People

              • Assignee:
                jpmat Jean-Pierre Matsumoto
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: