Repository: hadoop Updated Branches: refs/heads/trunk e54a3e1f4 -> 0ebe84d30
HADOOP-11868. Invalid user logins trigger large backtraces in server log. Contributed by Chang Li Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0ebe84d3 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0ebe84d3 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0ebe84d3 Branch: refs/heads/trunk Commit: 0ebe84d30af2046775884c9fb1e054da31582657 Parents: e54a3e1 Author: Jason Lowe <[email protected]> Authored: Wed Apr 22 20:56:29 2015 +0000 Committer: Jason Lowe <[email protected]> Committed: Wed Apr 22 20:56:29 2015 +0000 ---------------------------------------------------------------------- .../security/authentication/server/AuthenticationFilter.java | 6 +++++- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/0ebe84d3/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java index 203ee41..9cfa3c2 100644 --- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java +++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java @@ -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()) { http://git-wip-us.apache.org/repos/asf/hadoop/blob/0ebe84d3/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 3c636ec..1410ce4 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -554,6 +554,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
