Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RANGER-4400: Fixed ConcurrentModificationException in RangerKafkaAuditHandler.processResults(Collection<RangerAccessResult> results) #285

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

fateh288
Copy link
Contributor

@fateh288 fateh288 commented Oct 3, 2023

What changes were proposed in this pull request?

Previously added patch for RANGER-4400 used auditEventList in processResults() for the collection of requests and flushed them at a later stage in flushAudit(). This approach results in ConcurrentModificationException because auditEventList can get modified (more events added) while audit events getting flushed.
Instead of collecting these audit events in an array list, this patch flushes the audit event one at a time while they are being processed. This prevents the ConcurrentModificationException as no array list is used.

How was this patch tested?

system tests with kafka

…tHandler.processResults(Collection<RangerAccessResult> results)
@kumaab kumaab requested a review from rameeshm October 4, 2023 00:13
@rameeshm rameeshm merged commit 376c8f7 into apache:master Oct 4, 2023
1 check passed
mneethiraj pushed a commit that referenced this pull request Jun 20, 2024
…tHandler.processResults(Collection<RangerAccessResult> results) (#285)

(cherry picked from commit 376c8f7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants