Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6499

Use NativeIO#renameTo instead of File#renameTo in FileJournalManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • namenode
    • None
    • Reviewed

    Description

      java.io.File's method renameTo() returns boolean (true for success and false for failure). If any call to this method failed, the caller can't tell why it failed.

      Filing this jira to address this issue in FileJournalManager by using hadoop nativeio alternative.

      Attachments

        1. HDFS-6499.001.patch
          2 kB
          Yongjun Zhang
        2. HDFS-6499.002.patch
          2 kB
          Yongjun Zhang

        Issue Links

          Activity

            People

              yzhangal Yongjun Zhang
              yzhangal Yongjun Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: