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

Create a native api to delete file, like the renameTo method in NativeIO, for better error reporting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • None
    • None

    Description

      File.delete() returns boolean to indicate success or failure.

      As a follow-up of HDFS-6499, filing this jira to provide a native API to delete file, like the renameTo method in NativeIO. So caller can tell better what's the reason of failure.

      And fix FileJournalManager etc places for better error reporting.

      Thanks atm for reviewing the fix of HDFS-6499 and pointing out this issue.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: