HDFS-5061. Make FSNameSystem#auditLoggers an unmodifiable list. Contributed by Arpit Agarwal.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1510611 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2013-08-05 17:08:09 +00:00
parent 6ea797d0d0
commit 390d689816
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -774,7 +774,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)