Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4332

AuditBatchQueue.log() should block instead of throwing 'Queue full' exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • audit
    • None

    Description

      Ranger audit framework uses AuditBatchQueue to buffer audit logs before sending as a batch to the destination. This helps to greatly reduce the overhead in writing audit logs to destinations like Solr, HDFS, S3. When the buffer held in AuditBatchQueue is full, attempts to add a log should wait until the buffer has space . Instead, IllegalStateException("Queue full") exception is thrown, which results in the audit log to be not sent to the destination. AuditBatchQueue should be updated to wait until the buffer has space to add entries. 

      Attachments

        1. RANGER-4332.patch
          2 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: