hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1553439 - /hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
Date Thu, 26 Dec 2013 02:18:03 GMT
Author: apurtell
Date: Thu Dec 26 02:18:03 2013
New Revision: 1553439

URL: http://svn.apache.org/r1553439
Log:
Amend HBASE-10238. Special case for UndeclaredThrowableException

Modified:
    hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java

Modified: hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java?rev=1553439&r1=1553438&r2=1553439&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
(original)
+++ hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
Thu Dec 26 02:18:03 2013
@@ -321,9 +321,9 @@ public class TestAccessController extend
           }
         }
         else {
-          // For doBulkLoad calls AccessDeniedException
-          // is buried in the stack trace
-          Throwable ex = e;
+          // AccessDeniedException can be buried in the stack trace
+          Throwable ex = (e instanceof UndeclaredThrowableException) ?
+            ((UndeclaredThrowableException)e).getUndeclaredThrowable() : e;
           do {
             if (ex instanceof AccessDeniedException) {
               isAccessDeniedException = true;



Mime
View raw message