Amend HBASE-10238. Special case for UndeclaredThrowableException

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1553438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2013-12-26 02:16:56 +00:00
parent 5c6d5731d7
commit c5e567a861
1 changed files with 3 additions and 3 deletions

View File

@ -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;