Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14552 Über-jira: WASB client phase II: performance and testing
  3. HADOOP-14583

wasb throws an exception if you try to create a file and there's no parent directory

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • 2.9.0, 3.0.0-beta1
    • fs/azure
    • None

    Description

      It's a known defect of the Hadoop FS API (and one we don't explicitly test for enough), but you can create a file on a path which doesn't exist. In that situation, the create() logic is expectd to create the entries.

      Wasb appears to raise an exception if you try to call create(filepath) without calling mkdirs(filepath.getParent() first. That's the semantics expected of createNonRecursive()

      Attachments

        1. HADOOP-14583-branch-2-001.patch
          10 kB
          Esfandiar Manii
        2. HADOOP-14583-003.patch
          9 kB
          Thomas Marqardt
        3. HADOOP-14583-002.patch
          6 kB
          Esfandiar Manii
        4. HADOOP-14583-001.patch
          6 kB
          Esfandiar Manii

        Activity

          People

            esmanii Esfandiar Manii
            stevel@apache.org Steve Loughran
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: