From c5e567a8613d374ebf09128c327e8acfb1ed9146 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Thu, 26 Dec 2013 02:16:56 +0000 Subject: [PATCH] Amend HBASE-10238. Special case for UndeclaredThrowableException git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1553438 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/security/access/TestAccessController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java index b9593a3d7d4..80f4afd775d 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java @@ -321,9 +321,9 @@ public class TestAccessController extends SecureTestUtil { } } 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;