hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12284) UserGroupInformation doAs can throw misleading exception
Date Tue, 06 Oct 2015 21:13:27 GMT

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

Hudson commented on HADOOP-12284:
---------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #8579 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8579/])
HADOOP-12284. UserGroupInformation doAs can throw misleading exception (stevel: rev 6d5713a8a84b5fdae9b371fb692a818352758bd5)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java


> 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
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-12284-002.patch, HADOOP-12284-003.patch, HADOOP-12284-004.patch,
HADOOP-12284-005.patch, HADOOP-12284.example, HADOOP-12284.patch
>
>
> If doAs() catches a PrivilegedActionException it extracts the underlying cause through
getCause and then re-throws an exception based on the class of the Cause.  If getCause returns
null, this is how it gets re-thrown:
> 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)

Mime
View raw message