You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2013/12/26 03:16:56 UTC

svn commit: r1553438 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java

Author: apurtell
Date: Thu Dec 26 02:16:56 2013
New Revision: 1553438

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

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

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java?rev=1553438&r1=1553437&r2=1553438&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java (original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java Thu Dec 26 02:16:56 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;