[ 
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

        

Reply via email to