[
https://issues.apache.org/jira/browse/HADOOP-12856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran updated HADOOP-12856:
------------------------------------
Attachment: HADOOP-12856-001.patch
patch
# tightens the exceptions (They are still IOEs)
# Raw local contract tests to load the rawlocal.xml file
# rawlocal.xml file synced up with the localfs.xml file
we can't turn strict exceptions on in the contract tests, as the local
filesystems don't do what we want them to do in some failure modes. I manually
turned them on and verified that the rename tests worked; it was some tests
related to opening files that fail in strict mode.
> FileUtil.checkDest() and RawLocalFileSystem.mkdirs() to throw stricter IOEs;
> RawLocalFS contract tests to verify
> ----------------------------------------------------------------------------------------------------------------
>
> 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
> Attachments: HADOOP-12856-001.patch
>
>
> {{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)