Skip to content

Commit 53da829

Browse files
aryangupta1998Aryan Gupta
authored andcommitted
HDFS-15518. Wrong operation name in FsNamesystem for listSnapshots. (apache#2217)
* HDFS-15518. Fixed String operationName = ListSnapshot. * HDFS-15518. Changed ListSnapshot to operationName. Co-authored-by: Aryan Gupta <[email protected]> (cherry picked from commit e592ec5) Change-Id: I79561a349b7286d2390529812dd7079aee31f7b2
1 parent 3e056a4 commit 53da829

File tree

1 file changed

+3
-3
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6796,7 +6796,7 @@ public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
67966796
*/
67976797
public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
67986798
throws IOException {
6799-
final String operationName = "listSnapshotDirectory";
6799+
final String operationName = "ListSnapshot";
68006800
SnapshotStatus[] status;
68016801
checkOperation(OperationCategory.READ);
68026802
boolean success = false;
@@ -6813,10 +6813,10 @@ public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
68136813
readUnlock(operationName);
68146814
}
68156815
} catch (AccessControlException ace) {
6816-
logAuditEvent(success, "listSnapshots", snapshotRoot);
6816+
logAuditEvent(success, operationName, snapshotRoot);
68176817
throw ace;
68186818
}
6819-
logAuditEvent(success, "listSnapshots", snapshotRoot);
6819+
logAuditEvent(success, operationName, snapshotRoot);
68206820
return status;
68216821
}
68226822
/**

0 commit comments

Comments
 (0)