From c0118105b7486793bcaca48786d5f9d3e0ee2ff3 Mon Sep 17 00:00:00 2001 From: Shweta Date: Thu, 11 Oct 2018 20:38:19 -0700 Subject: [PATCH] HDFS-13973. getErasureCodingPolicy should log path in audit event. Contributed by Shweta. Signed-off-by: Xiao Chen --- .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 137dfb9d053..cc380367596 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 @@ -7728,7 +7728,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, return ret; } finally { readUnlock(operationName); - logAuditEvent(success, operationName, null); + logAuditEvent(success, operationName, src); } }