From 81f9786ae6e238c5cebfd2de856cfc9f02bf004a Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Thu, 8 Aug 2013 21:46:34 +0000 Subject: [PATCH] HDFS-5047. Supress logging of full stack trace of quota and lease exceptions. Contributed by Robert Parker. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1512057 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/namenode/NameNodeRpcServer.java | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d890b0673d..d52bc0c436 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -291,6 +291,9 @@ Release 2.1.1-beta - UNRELEASED HDFS-4926. Namenode webserver's page has a tooltip that is inconsistent with the datanode HTML link. (Vivek Ganesan via jing9) + HDFS-5047. Supress logging of full stack trace of quota and lease + exceptions. (Robert Parker via kihwal) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java index 3f26582e72..0a3309fdbb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java @@ -70,6 +70,8 @@ import org.apache.hadoop.hdfs.protocol.HdfsFileStatus; import org.apache.hadoop.hdfs.protocol.LocatedBlock; import org.apache.hadoop.hdfs.protocol.LocatedBlocks; +import org.apache.hadoop.hdfs.protocol.DSQuotaExceededException; +import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.QuotaExceededException; import org.apache.hadoop.hdfs.protocol.RecoveryInProgressException; import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus; @@ -307,7 +309,10 @@ public NameNodeRpcServer(Configuration conf, NameNode nn) QuotaExceededException.class, RecoveryInProgressException.class, AccessControlException.class, - InvalidToken.class); + InvalidToken.class, + LeaseExpiredException.class, + NSQuotaExceededException.class, + DSQuotaExceededException.class); } /**