[ https://issues.apache.org/jira/browse/HADOOP-9651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686763#comment-13686763 ]
Steve Loughran commented on HADOOP-9651: ---------------------------------------- Here I propose # saying MUST throw {{FileAlreadyExistsException}} # fixing all the hadoop filesystems to do this where they do not today. # making sure the FS tests check for this. HDFS already has the correct behaviour, as do the blobstore(s). > Filesystems to throw FileAlreadyExistsException in createFile(path, > overwrite=false) when the file exists > --------------------------------------------------------------------------------------------------------- > > Key: HADOOP-9651 > URL: https://issues.apache.org/jira/browse/HADOOP-9651 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Affects Versions: 2.1.0-beta > Reporter: Steve Loughran > Priority: Minor > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira