Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6264

Provide FileSystem#create() variant which throws exception if parent directory doesn't exist

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: namenode
    • Labels:

      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.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Development