From ada2f74b1774ba9e0c7158fb36b277ebf94e7460 Mon Sep 17 00:00:00 2001 From: Devaraj K Date: Fri, 8 May 2015 12:14:10 +0530 Subject: [PATCH] YARN-3358. Audit log not present while refreshing Service ACLs. Contributed by Varun Saxena. (cherry picked from commit ef3d66d4624d360e75c016e36824a6782d6a9746) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../hadoop/yarn/server/resourcemanager/AdminService.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 0229c291620..82d4fa61c91 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -65,6 +65,9 @@ Release 2.7.1 - UNRELEASED YARN-3385. Fixed a race-condition in ResourceManager's ZooKeeper based state-store to avoid crashing on duplicate deletes. (Zhihai Xu via vinodkv) + YARN-3358. Audit log not present while refreshing Service ACLs. + (Varun Saxena via devaraj) + Release 2.7.0 - 2015-04-20 INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java index 618099546da..35aba7e5284 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java @@ -488,7 +488,9 @@ public class AdminService extends CompositeService implements conf, policyProvider); rmContext.getResourceTrackerService().refreshServiceAcls( conf, policyProvider); - + + RMAuditLogger.logSuccess(user.getShortUserName(), argName, "AdminService"); + return recordFactory.newRecordInstance(RefreshServiceAclsResponse.class); }