[
https://issues.apache.org/jira/browse/HDFS-15516?focusedWorklogId=484874&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-484874
]
ASF GitHub Bot logged work on HDFS-15516:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Sep/20 02:15
Start Date: 16/Sep/20 02:15
Worklog Time Spent: 10m
Work Description: jianghuazhu commented on a change in pull request #2281:
URL: https://github.com/apache/hadoop/pull/2281#discussion_r489120534
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
##########
@@ -2639,10 +2639,11 @@ HdfsFileStatus startFile(String src, PermissionStatus
permissions,
createParent, replication, blockSize, supportedVersions,
ecPolicyName,
storagePolicy, logRetryCache);
} catch (AccessControlException e) {
- logAuditEvent(false, "create", src);
+ logAuditEvent(false, "create(options=" + flag.toString() + ")", src);
Review comment:
thanks for your suggestion.
I will modify it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 484874)
Time Spent: 1h 20m (was: 1h 10m)
> Add info for create flags in NameNode audit logs
> ------------------------------------------------
>
> Key: HDFS-15516
> URL: https://issues.apache.org/jira/browse/HDFS-15516
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Shashikant Banerjee
> Assignee: jianghua zhu
> Priority: Major
> Labels: pull-request-available
> Attachments: HDFS-15516.001.patch, HDFS-15516.002.patch,
> HDFS-15516.003.patch, HDFS-15516.004.patch
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Currently, if file create happens with flags like overwrite , the audit logs
> doesn't seem to contain the info regarding the flags in the audit logs. It
> would be useful to add info regarding the create options in the audit logs
> similar to Rename ops.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]