Skip to content

Commit e592ec5

Browse files
aryangupta1998Aryan Gupta
andauthored
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 <aryan.gupta@cloudera.com>
1 parent 1071604 commit e592ec5

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
@@ -7031,7 +7031,7 @@ public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
70317031
*/
70327032
public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
70337033
throws IOException {
7034-
final String operationName = "listSnapshotDirectory";
7034+
final String operationName = "ListSnapshot";
70357035
SnapshotStatus[] status;
70367036
checkOperation(OperationCategory.READ);
70377037
boolean success = false;
@@ -7048,10 +7048,10 @@ public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
70487048
readUnlock(operationName, getLockReportInfoSupplier(null));
70497049
}
70507050
} catch (AccessControlException ace) {
7051-
logAuditEvent(success, "listSnapshots", snapshotRoot);
7051+
logAuditEvent(success, operationName, snapshotRoot);
70527052
throw ace;
70537053
}
7054-
logAuditEvent(success, "listSnapshots", snapshotRoot);
7054+
logAuditEvent(success, operationName, snapshotRoot);
70557055
return status;
70567056
}
70577057
/**

0 commit comments

Comments
 (0)