Description
In org.apache.ranger.audit.queue.AuditBatchQueue.waitToComplete(long), the local variable, prevQueueSize, used in a loop is not recomputed after the initial assignment. This can result in the audit shutdown to retry for configured timeout period (30 seconds?), instead of exiting sooner, when the audit destination is down.