Mahesh Hanumant Bandal created RANGER-3961:
----------------------------------------------

             Summary: AuditFileSpool logs out all events that were not audited 
successfully
                 Key: RANGER-3961
                 URL: https://issues.apache.org/jira/browse/RANGER-3961
             Project: Ranger
          Issue Type: Improvement
          Components: Ranger
    Affects Versions: 2.3.0, 3.0.0
            Reporter: Mahesh Hanumant Bandal
            Assignee: Mahesh Hanumant Bandal


In AuditFileSpool.java from line 901-905, there is this code:
{code:java}
} catch (Throwable t) {
   logger.error("Error while sending logs to consumer. provider="
         + queueProvider.getName() + ", consumer="
         + consumerProvider.getName() + ", log=" + lines, t);
} {code}
Here the variable *lines* holds all the events that are in current batch, that 
is 1000 by default (~0.5MB of strings). The batch can be configured even higher 
that makes things worse.

If there is an issue in audit, a lot of huge strings will be logged out.

Suggesting to remove *lines* variable and/or add lines.size() to know how many 
events were not sent.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to