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

Undeprecate createNonRecursive()

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • Reviewed
    • FileSystem#createNonRecursive() is undeprecated.

    Description

      FileSystem#createNonRecursive() is deprecated.
      However, there is no DistributedFileSystem#create() implementation which throws exception if parent directory doesn't exist.
      This limits clients' migration away from the deprecated method.

      For HBase, IO fencing relies on the behavior of FileSystem#createNonRecursive().
      Variant of create() method should be added which throws exception if parent directory doesn't exist.

      Attachments

        1. hdfs-6264-v1.txt
          5 kB
          Ted Yu
        2. hdfs-6264-v2.txt
          10 kB
          Ted Yu
        3. hdfs-6264-v3.txt
          10 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: