From e6111498f8afdc01a75abce182aab4809a494c95 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Eagles Date: Thu, 13 Mar 2014 16:11:45 +0000 Subject: [PATCH] HADOOP-10332. HttpServer's jetty audit log always logs 200 OK (jeagles) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1577221 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../src/main/java/org/apache/hadoop/http/HttpServer2.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index f06a88bd612..ed1ee98f13f 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -2407,6 +2407,8 @@ Release 0.23.11 - UNRELEASED HADOOP-10129. Distcp may succeed when it fails (daryn) + HADOOP-10332. HttpServer's jetty audit log always logs 200 OK (jeagles) + Release 0.23.10 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java index 2f28d08435a..67b89e1e5a7 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java @@ -372,7 +372,7 @@ public final class HttpServer2 implements FilterContainer { RequestLogHandler requestLogHandler = new RequestLogHandler(); requestLogHandler.setRequestLog(requestLog); HandlerCollection handlers = new HandlerCollection(); - handlers.setHandlers(new Handler[] { requestLogHandler, contexts }); + handlers.setHandlers(new Handler[] {contexts, requestLogHandler}); webServer.setHandler(handlers); } else { webServer.setHandler(contexts);