Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6185 HDFS operational and debuggability improvements
  3. HDFS-7118

Improve diagnostics on storage directory rename operations by using NativeIO#renameTo in Storage#rename.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: journal-node, namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      If a file rename fails, NativeIO#renameTo includes more information about the root cause than a plain java.io.File#renameTo. The native code can throw an exception with a detailed error message and the errno on *nix or the value of GetLastError on Windows. This issue proposes to use NativeIO#renameTo inside or in place of Storage#rename to help improve diagnostics. The method falls back to java.io.File#renameTo if native code is not loaded, so this change would not introduce a compatibility problem for deployments running without native code.

        Attachments

        1. HDFS-7118.1.patch
          4 kB
          Chris Nauroth

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: