[ 
https://issues.apache.org/jira/browse/HADOOP-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-10458:
------------------------------------

    Attachment: HADOOP-10458-001.patch


change exception and drop the original exception (which was only used in one 
place). 

If we were worried about any external code using this exception, we could 
change its base class to be a subclass of {{FileAlreadyExistsException}}

> swifts should throw FileAlreadyExistsException on attempt to overwrite file
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-10458
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10458
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.4.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-10458-001.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> the swift:// filesystem checks for and rejects {{create()}} calls over an 
> existing file if overwrite = false, but it throws a custom exception. 
> {{SwiftPathExistsException}}
> If it threw a {{org.apache.hadoop.fs.FileAlreadyExistsException}} it would 
> match HDFS



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to