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 "Liyin Liang (Created) (JIRA)" <ji...@apache.org> on 2011/10/14 06:54:11 UTC

[jira] [Created] (HADOOP-7748) Print exception message when failed to move to trash.

Print exception message when  failed to move to trash.
------------------------------------------------------

                 Key: HADOOP-7748
                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 0.20.204.0
            Reporter: Liyin Liang
            Priority: Trivial
             Fix For: 0.20.205.0


When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7748) Print exception message when failed to move to trash.

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

madhukara phatak commented on HADOOP-7748:
------------------------------------------

My bad, the trunk also has the issue, but in different class (TrashPolicyDefault).
                
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7748) Print exception message when failed to move to trash.

Posted by "Liyin Liang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127275#comment-13127275 ] 

Liyin Liang commented on HADOOP-7748:
-------------------------------------

When client fails to move a path to trash, the exception is retained, but the message is not propagated to the new exception text, which becomes simply
rmr: Failed to move to trash: hdfs://namenode:9000/test/foo

The attached patch will change such message to include that of the nested exception, such as
rmr: Failed to move to trash: hdfs://namenode:9000/test/foo error: org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: Permission denied: user=xxx, access=WRITE, inode="test":hadoop:supergroup:rwxr-xr-x

Then it will be very helpful to diagnosis problems.
                
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>             Fix For: 0.20.205.0
>
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7748) Print exception message when failed to move to trash.

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

madhukara phatak commented on HADOOP-7748:
------------------------------------------

It seems to be fixed in trunk, as it throws the IOException directly rather than catching it.
                
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7748) Print exception message when failed to move to trash.

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

Matt Foley updated HADOOP-7748:
-------------------------------

    Target Version/s: 0.20.206.0
       Fix Version/s:     (was: 0.20.205.0)
    
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7748) Print exception message when failed to move to trash.

Posted by "Harsh J (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177582#comment-13177582 ] 

Harsh J commented on HADOOP-7748:
---------------------------------

+1 change looks acceptable. Could you also add a simple test so we do not regress? Also, lets target trunk for this if its a problem there too -- not 1.x alone (we can backport to 1.x, but new features go to trunk first).
                
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7748) Print exception message when failed to move to trash.

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

Liyin Liang updated HADOOP-7748:
--------------------------------

    Attachment: 7748.diff
    
> Print exception message when  failed to move to trash.
> ------------------------------------------------------
>
>                 Key: HADOOP-7748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7748
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.204.0
>            Reporter: Liyin Liang
>            Priority: Trivial
>             Fix For: 0.20.205.0
>
>         Attachments: 7748.diff
>
>
> When failed to move to trash, the client should print exception message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira