[
https://issues.apache.org/jira/browse/HDFS-9395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kuhu Shukla updated HDFS-9395:
------------------------------
Attachment: HDFS-9395.001.patch
Thank you [~cmccabe] for your comments. I am uploading a preliminary patch
which in fact:
- logs when AccessControlException(s) occur for methods like getContentSummary,
setQuota etc. with allowed=false
- logs for successful execution with allowed=true as expected.
- not log in the case of IOExceptions.
since we want allowed=true/false stand for access and not success/failure of
the operation alone.
> getContentSummary is audit logged as success even if failed
> -----------------------------------------------------------
>
> Key: HDFS-9395
> URL: https://issues.apache.org/jira/browse/HDFS-9395
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Kihwal Lee
> Assignee: Kuhu Shukla
> Attachments: HDFS-9395.001.patch
>
>
> Audit logging is in the fainally block along with the lock unlocking, so it
> is always logged as success even for cases like FileNotFoundException is
> thrown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)