HADOOP-13026 Should not wrap IOExceptions into a AuthenticationException in KerberosAuthenticator. Xuan Gong via stevel

This commit is contained in:
Steve Loughran 2016-04-15 17:43:38 +01:00 committed by Konstantin V Shvachko
parent b6afb4a951
commit f225b5514f
2 changed files with 8 additions and 1 deletions

View File

@ -329,7 +329,11 @@ public class KerberosAuthenticator implements Authenticator {
} }
}); });
} 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);
} }

View File

@ -320,6 +320,9 @@ Release 2.7.4 - UNRELEASED
HDFS-6291. FSImage may be left unclosed in BootstrapStandby#doRun() HDFS-6291. FSImage may be left unclosed in BootstrapStandby#doRun()
(Sanghyun Yun via vinayakumarb) (Sanghyun Yun via vinayakumarb)
HADOOP-13026 Should not wrap IOExceptions into a AuthenticationException in
KerberosAuthenticator. Xuan Gong via stevel
Release 2.7.3 - 2016-08-25 Release 2.7.3 - 2016-08-25
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES