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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.3.0
    • 0.21.0
    • fs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: