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>
This commit is contained in:
parent
10716040a8
commit
e592ec5f8b
@ -7031,7 +7031,7 @@ public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
|
|||||||
*/
|
*/
|
||||||
public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
|
public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
final String operationName = "listSnapshotDirectory";
|
final String operationName = "ListSnapshot";
|
||||||
SnapshotStatus[] status;
|
SnapshotStatus[] status;
|
||||||
checkOperation(OperationCategory.READ);
|
checkOperation(OperationCategory.READ);
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
@ -7048,10 +7048,10 @@ public SnapshotStatus[] getSnapshotListing(String snapshotRoot)
|
|||||||
readUnlock(operationName, getLockReportInfoSupplier(null));
|
readUnlock(operationName, getLockReportInfoSupplier(null));
|
||||||
}
|
}
|
||||||
} catch (AccessControlException ace) {
|
} catch (AccessControlException ace) {
|
||||||
logAuditEvent(success, "listSnapshots", snapshotRoot);
|
logAuditEvent(success, operationName, snapshotRoot);
|
||||||
throw ace;
|
throw ace;
|
||||||
}
|
}
|
||||||
logAuditEvent(success, "listSnapshots", snapshotRoot);
|
logAuditEvent(success, operationName, snapshotRoot);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user