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 "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2010/02/11 01:44:28 UTC

[jira] Created: (HADOOP-6556) FileContext methods delete and copy should not return 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.


[jira] Commented: (HADOOP-6556) Cleaup some of the methods on FileContext.

Posted by "Sanjay Radia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837053#action_12837053 ] 

Sanjay Radia commented on HADOOP-6556:
--------------------------------------

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.

> Cleaup some of the methods on FileContext.
> ------------------------------------------
>
>                 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
>
> Cleanup some of the methods of FileContext

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


[jira] Updated: (HADOOP-6556) Cleaup some of the methods on FileContext.

Posted by "Sanjay Radia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjay Radia updated HADOOP-6556:
---------------------------------

    Description: Cleanup some of the methods of FileContext  (was: 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.)
        Summary: Cleaup some of the methods on FileContext.  (was: FileContext methods delete and copy should not return boolean)

> Cleaup some of the methods on FileContext.
> ------------------------------------------
>
>                 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
>
> Cleanup some of the methods of FileContext

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


[jira] Commented: (HADOOP-6556) FileContext methods delete and copy should not return boolean

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (HADOOP-6556) Cleaup some of the methods on FileContext.

Posted by "Sanjay Radia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837054#action_12837054 ] 

Sanjay Radia commented on HADOOP-6556:
--------------------------------------

FileContext#listStatus(Path[], ..)  should fail on any errors on any of the supplied paths.

> Cleaup some of the methods on FileContext.
> ------------------------------------------
>
>                 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
>
> Cleanup some of the methods of FileContext

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


[jira] Commented: (HADOOP-6556) Cleaup some of the methods on FileContext.

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837415#action_12837415 ] 

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

Another comment from HADOOP-6537 - listStatus(all variations), globStatus(??) - add the UnresolvedLinkE


> Cleaup some of the methods on FileContext.
> ------------------------------------------
>
>                 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
>
> Cleanup some of the methods of FileContext

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