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 dd590c6d80..cd8e8ddb19 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 @@ -7031,7 +7031,7 @@ public SnapshottableDirectoryStatus[] getSnapshottableDirListing() */ public SnapshotStatus[] getSnapshotListing(String snapshotRoot) throws IOException { - final String operationName = "listSnapshotDirectory"; + final String operationName = "ListSnapshot"; SnapshotStatus[] status; checkOperation(OperationCategory.READ); boolean success = false; @@ -7048,10 +7048,10 @@ public SnapshotStatus[] getSnapshotListing(String snapshotRoot) readUnlock(operationName, getLockReportInfoSupplier(null)); } } catch (AccessControlException ace) { - logAuditEvent(success, "listSnapshots", snapshotRoot); + logAuditEvent(success, operationName, snapshotRoot); throw ace; } - logAuditEvent(success, "listSnapshots", snapshotRoot); + logAuditEvent(success, operationName, snapshotRoot); return status; } /**