From 2b2344a57e7086a570ee8862e33f3da15e9db51c Mon Sep 17 00:00:00 2001 From: Alejandro Abdelnur Date: Mon, 2 Jul 2012 16:41:33 +0000 Subject: [PATCH] HDFS-3575. HttpFS does not log Exception Stacktraces (brocknoland via tucu) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1356330 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/fs/http/server/HttpFSExceptionProvider.java | 2 +- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSExceptionProvider.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSExceptionProvider.java index b999a725570..60abe96384a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSExceptionProvider.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSExceptionProvider.java @@ -91,7 +91,7 @@ public class HttpFSExceptionProvider extends ExceptionProvider { String path = MDC.get("path"); String message = getOneLineMessage(throwable); AUDIT_LOG.warn("FAILED [{}:{}] response [{}] {}", new Object[]{method, path, status, message}); - LOG.warn("[{}:{}] response [{}] {}", new Object[]{method, path, status, message, throwable}); + LOG.warn("[{}:{}] response [{}] {}", new Object[]{method, path, status, message}, throwable); } } diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index f3e9d8a9657..43913d86aed 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -388,6 +388,8 @@ Branch-2 ( Unreleased changes ) block in a namenode and the reported block from a datanode do not match. (Ashish Singhi via szetszwo) + HDFS-3575. HttpFS does not log Exception Stacktraces (brocknoland via tucu) + BREAKDOWN OF HDFS-3042 SUBTASKS HDFS-2185. HDFS portion of ZK-based FailoverController (todd)