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

Refactor RawLocalFileSystem#rename for improved testability.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1-win, 1.3.0, 2.1.1-beta, 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • fs, test
    • 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.003.patch
          6 kB
          Jean-Pierre Matsumoto
        2. HADOOP-9805.002.patch
          6 kB
          Jean-Pierre Matsumoto
        3. HADOOP-9805.001.patch
          6 kB
          Jean-Pierre Matsumoto

        Issue Links

          Activity

            People

              jpmat Jean-Pierre Matsumoto
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: