From 1df1391cca5a05984c8077820c270f4b156ecb85 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Mon, 5 Aug 2013 17:49:07 +0000 Subject: [PATCH] HDFS-5061. Merge 1510611 from trunk git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1510626 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index a08daf5ee9f..998e6ee0196 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -58,6 +58,9 @@ Release 2.1.1-beta - UNRELEASED HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may contain additional properties. (szetszwo) + HDFS-5061. Make FSNameSystem#auditLoggers an unmodifiable list. + (Arpit Agarwal via suresh) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index 015befd259f..20993a7cbc1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -759,7 +759,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats, if (auditLoggers.isEmpty()) { auditLoggers.add(new DefaultAuditLogger()); } - return auditLoggers; + return Collections.unmodifiableList(auditLoggers); } void loadFSImage(StartupOption startOpt, FSImage fsImage, boolean haEnabled)