[
https://issues.apache.org/jira/browse/HDFS-8176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14512510#comment-14512510
]
Allen Wittenauer commented on HDFS-8176:
----------------------------------------
Err, what's the value of doing this? Does doing a snapshot compare actually
change the data on HDFS? If no, then this shouldn't be in the audit log.
> Record from/to snapshots in audit log for snapshot diff report
> --------------------------------------------------------------
>
> Key: HDFS-8176
> URL: https://issues.apache.org/jira/browse/HDFS-8176
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: snapshots
> Reporter: J.Andreina
> Assignee: J.Andreina
> Priority: Minor
> Fix For: 2.8.0
>
> Attachments: HDFS-8176.1.patch, HDFS-8176.2.patch
>
>
> Provide information about the snapshots compared in audit log.
> In current code value "null" is been passed.
> {code}
> logAuditEvent(diffs != null, "computeSnapshotDiff", null, null, null);
> {code}
> {noformat}
> 2015-04-15 09:56:49,328 INFO FSNamesystem.audit: allowed=true ugi=Rex
> (auth:SIMPLE) ip=/XXXXXXXXX cmd=computeSnapshotDiff src=null
> dst=null perm=null proto=rpc
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)