HDFS-8176. Record from/to snapshots in audit log for snapshot diff report. Contributed by J. Andreina.
This commit is contained in:
parent
eee9facbba
commit
cf6c8a1b4e
@ -472,6 +472,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
|
|
||||||
HDFS-8052. Move WebHdfsFileSystem into hadoop-hdfs-client. (wheat9)
|
HDFS-8052. Move WebHdfsFileSystem into hadoop-hdfs-client. (wheat9)
|
||||||
|
|
||||||
|
HDFS-8176. Record from/to snapshots in audit log for snapshot diff report.
|
||||||
|
(J. Andreina via jing9)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
@ -7406,8 +7406,12 @@ SnapshotDiffReport getSnapshotDiffReport(String path,
|
|||||||
} finally {
|
} finally {
|
||||||
readUnlock();
|
readUnlock();
|
||||||
}
|
}
|
||||||
|
String fromSnapshotRoot = (fromSnapshot == null || fromSnapshot.isEmpty()) ?
|
||||||
logAuditEvent(diffs != null, "computeSnapshotDiff", null, null, null);
|
path : Snapshot.getSnapshotPath(path, fromSnapshot);
|
||||||
|
String toSnapshotRoot = (toSnapshot == null || toSnapshot.isEmpty()) ?
|
||||||
|
path : Snapshot.getSnapshotPath(path, toSnapshot);
|
||||||
|
logAuditEvent(diffs != null, "computeSnapshotDiff", fromSnapshotRoot,
|
||||||
|
toSnapshotRoot, null);
|
||||||
return diffs;
|
return diffs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user