[ 
https://issues.apache.org/jira/browse/HADOOP-12856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172092#comment-15172092
 ] 

Steve Loughran commented on HADOOP-12856:
-----------------------------------------

Note how the stack trace shows that this happens in {{RawLocalFS.rename()}}. 
The code has been able to get through the contract tests as the 
RawLocalContract tests were actually using the contract in localfs.xml, not 
rawlocal.xml, and it's contract options say 
{{fs.contract.supports-strict-exceptions=false}},

> FileUtil.checkDest() to throw PathExistsException and 
> PathIsDirectoryException when appropriate
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-12856
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12856
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>
> {{FileUtil.checkDest()}} throws IOEs when its conditions are not met, with 
> meaningful text.
> The code could be improved if it were to throw {{PathExistsException}} and 
> {{PathIsDirectoryException}} when appropriate



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to