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

Filesystems to throw FileAlreadyExistsException in createFile(path, overwrite=false) when the file exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0-beta
    • None
    • fs
    • None

    Description

      While HDFS and other filesystems throw a FileAlreadyExistsException if you try to create a file that exists and you have set overwrite=false, RawLocalFileSystem throws a plain IOException. This makes it impossible to distinguish a create operation failing from a fixable problem (the file is there) and something more fundamental.

      Attachments

        1. HADOOP-9651.patch
          8 kB
          Jean-Baptiste Onofré

        Activity

          People

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

            Dates

              Created:
              Updated: