diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 546fcef3e6..69d71c8362 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -284,6 +284,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 ba62dad9ae..989f688a0f 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 @@ -774,7 +774,7 @@ private List initAuditLoggers(Configuration conf) { if (auditLoggers.isEmpty()) { auditLoggers.add(new DefaultAuditLogger()); } - return auditLoggers; + return Collections.unmodifiableList(auditLoggers); } void loadFSImage(StartupOption startOpt, FSImage fsImage, boolean haEnabled)