This is an automated email from the ASF dual-hosted git repository.

hemanthboyina pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e592ec5  HDFS-15518. Wrong operation name in FsNamesystem for 
listSnapshots. (#2217)
e592ec5 is described below

commit e592ec5f8bf68ff15e910653f9e02a1bf4f4725c
Author: Aryan Gupta <[email protected]>
AuthorDate: Thu Aug 13 00:09:38 2020 +0530

    HDFS-15518. Wrong operation name in FsNamesystem for listSnapshots. (#2217)
    
    * HDFS-15518. Fixed String operationName = ListSnapshot.
    
    * HDFS-15518. Changed ListSnapshot to operationName.
    
    Co-authored-by: Aryan Gupta <[email protected]>
---
 .../java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 dd590c6..cd8e8dd 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 class FSNamesystem implements Namesystem, 
FSNamesystemMBean,
    */
   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 class FSNamesystem implements Namesystem, 
FSNamesystemMBean,
         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;
   }
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to