You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2011/08/18 02:51:27 UTC
[jira] [Updated] (HADOOP-7552) FileUtil#fullyDelete doesn't throw
IOE but lists it in the throws clause
[ https://issues.apache.org/jira/browse/HADOOP-7552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated HADOOP-7552:
--------------------------------
Attachment: hadoop-7552-1.patch
Patch attached.
Updates the method signatures. Also:
* Adds a test to TestLocalFileSystem
* Converts TestLocalFileSystem
* Shares read/write file methods across local FileSystem tests
Will add in the MR side once MR2 has merged.
> FileUtil#fullyDelete doesn't throw IOE but lists it in the throws clause
> ------------------------------------------------------------------------
>
> Key: HADOOP-7552
> URL: https://issues.apache.org/jira/browse/HADOOP-7552
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Reporter: Eli Collins
> Assignee: Eli Collins
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: hadoop-7552-1.patch
>
>
> FileUtil#fullyDelete doesn't throw IOException so it shouldn't have IOException in its throws clause. Having it listed makes it easy to think you'll get an IOException eg trying to delete a non-existant file or on an IO error accessing the local file, but you don't.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira