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

Aaron Dossett commented on HADOOP-12284:
----------------------------------------

Attached is a real example.  This happened when trying to write to Hive from 
Storm with the metastore down.  See:  HADOOP-12284.example

> UserGroupInformation doAs can throw misleading exception
> --------------------------------------------------------
>
>                 Key: HADOOP-12284
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12284
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Aaron Dossett
>            Assignee: Aaron Dossett
>            Priority: Trivial
>         Attachments: HADOOP-12284.patch
>
>
> If doAs() catches a PrivilegedActionException it extracts the underlying 
> cause through getCause and then rethrows an exception based on the class of 
> the Cause.  If getCause returns null this executes, this is how it rethrown:
> else {
>         throw new UndeclaredThrowableException(cause);
>       }
> If cause == null that seems misleading. I have seen actual instances where 
> cause is null, so this isn't just a theoretical concern.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to