HADOOP-11868. Invalid user logins trigger large backtraces in server log. Contributed by Chang Li

(cherry picked from commit 0ebe84d30a)
This commit is contained in:
Jason Lowe 2015-04-22 20:56:29 +00:00
parent b17d365fa1
commit 2419861cac
2 changed files with 8 additions and 1 deletions

View File

@ -560,7 +560,11 @@ public class AuthenticationFilter implements Filter {
// exception from the filter itself is fatal
errCode = HttpServletResponse.SC_FORBIDDEN;
authenticationEx = ex;
LOG.warn("Authentication exception: " + ex.getMessage(), ex);
if (LOG.isDebugEnabled()) {
LOG.debug("Authentication exception: " + ex.getMessage(), ex);
} else {
LOG.warn("Authentication exception: " + ex.getMessage());
}
}
if (unauthorizedResponse) {
if (!httpResponse.isCommitted()) {

View File

@ -12,6 +12,9 @@ Release 2.7.1 - UNRELEASED
BUG FIXES
HADOOP-11868. Invalid user logins trigger large backtraces in server log
(Chang Li via jlowe)
Release 2.7.0 - 2015-04-20
INCOMPATIBLE CHANGES