ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Bosco Durai <bo...@apache.org>
Subject Re: Review Request 50649: RANGER-1131: Add trace message if audit event is failed to log.
Date Mon, 01 Aug 2016 03:17:17 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50649/#review144300
-----------------------------------------------------------




agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerDefaultAuditHandler.java
(line 167)
<https://reviews.apache.org/r/50649/#comment210307>

    If something is wrong, the this will generate a lot of logs. You could use org.apache.ranger.audit.provider.MiscUtil.logErrorMessageByInterval()
to limit the number of warn logs.


- Don Bosco Durai


On Aug. 1, 2016, 2:41 a.m., Dongying Jiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50649/
> -----------------------------------------------------------
> 
> (Updated Aug. 1, 2016, 2:41 a.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-1131
>     https://issues.apache.org/jira/browse/RANGER-1131
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> AuditHandler.log function returns true or false to indicate the audit log result, but
the caller doesn't handle this return value. So if the audit is failed to log, we can't find
any clue in the trace.
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerDefaultAuditHandler.java
60d3b0c 
> 
> Diff: https://reviews.apache.org/r/50649/diff/
> 
> 
> Testing
> -------
> 
> Warn level trace is added to indicate audit logging failure. The trace can be found in
the component who has ranger plugin enabled.
> 
> 
> Thanks,
> 
> Dongying Jiao
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message