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

Local FS doesn't raise an error on mkdir() over a file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0
    • Fix Version/s: 0.21.0
    • Component/s: fs
    • Labels:
      None

      Description

      if you mkdir() on a path where there is already a file, the operation does
      not fail. Instead the operation returns 0.

      This is at odds with the behaviour of HDFS.

      HADOOP-6229 add the check for the parent dir not being a file, but something similar is needed for the destination dir itself

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: