HADOOP-13026 Should not wrap IOExceptions into a AuthenticationException in KerberosAuthenticator. Xuan Gong via stevel
This commit is contained in:
parent
71b7f1f85f
commit
1dddf1ac8a
@ -327,7 +327,11 @@ public Void run() throws Exception {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (PrivilegedActionException ex) {
|
} catch (PrivilegedActionException ex) {
|
||||||
throw new AuthenticationException(ex.getException());
|
if (ex.getException() instanceof IOException) {
|
||||||
|
throw (IOException) ex.getException();
|
||||||
|
} else {
|
||||||
|
throw new AuthenticationException(ex.getException());
|
||||||
|
}
|
||||||
} catch (LoginException ex) {
|
} catch (LoginException ex) {
|
||||||
throw new AuthenticationException(ex);
|
throw new AuthenticationException(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user