hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6556) FileContext methods delete and copy should not return boolean
Date Fri, 12 Feb 2010 00:58:28 GMT

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

Suresh Srinivas commented on HADOOP-6556:
-----------------------------------------

Additional changes needed to FileContext methods:
* isFile, isDir - should it throw notFoundException or return false if the path does not exist?
* deleteOnExit should return void instead of boolean.


> FileContext methods delete and copy should not return boolean
> -------------------------------------------------------------
>
>                 Key: HADOOP-6556
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6556
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>
> FileContext#delete and FileContext#copy should return void instead of boolean. On failure
an appropriate exception should be thrown that details the failure instead of returning false.
There could be other methods in FileContext too that need similar changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message