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:
parent
5c6d5731d7
commit
c5e567a861
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue