hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-5051) StorageBasedAuthorizationProvider masks lower level exception with IllegalStateException
Date Tue, 13 Aug 2013 16:29:49 GMT

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

Hudson commented on HIVE-5051:
------------------------------

FAILURE: Integrated in Hive-trunk-hadoop2 #356 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/356/])
HIVE-5051 : StorageBasedAuthorizationProvider masks lower level exception with IllegalStateException
(Eugene Koifman via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1513450)
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/StorageBasedAuthorizationProvider.java

                
> StorageBasedAuthorizationProvider masks lower level exception with IllegalStateException
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-5051
>                 URL: https://issues.apache.org/jira/browse/HIVE-5051
>             Project: Hive
>          Issue Type: Bug
>          Components: Authorization
>    Affects Versions: 0.12.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>             Fix For: 0.12.0
>
>         Attachments: HIVE-5051.patch
>
>
> org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider
> has the following 2 methods
>   private HiveException hiveException(Exception e) {
>     HiveException ex = new HiveException(e);
>     ex.initCause(e);
>     return ex;
>   }
>   private AuthorizationException authorizationException(Exception e) {
>     AuthorizationException ex = new AuthorizationException(e);
>     ex.initCause(e);
>     return ex;
>   }
> both, when called, will cause 
> throw new IllegalStateException("Can't overwrite cause"); to be thrown and the original
Exception is lost.
> See http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Throwable.java#Throwable.initCause%28java.lang.Throwable%29

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message