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-5151: fix for error while writing audit logs to HDFS #535

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

mneethiraj
Copy link
Contributor

What changes were proposed in this pull request?

Updated to call closeFileIfNeeded() only from getLogFileStream(), to avoid one thread closing the file which is being written by another thread.

How was this patch tested?

Configured plugin to rollover audit log every 3 minutes, generated audits for a long duration and verified that the errors reported in the JIRA are no more seen.

  xasecure.audit.destination.hdfs.file.rollover.enable.periodic.rollover=true
  xasecure.audit.destination.hdfs.file.rollover.periodic.rollover.check.sec=180
  xasecure.audit.destination.hdfs.file.rollover.period=3m

@mneethiraj mneethiraj merged commit bcf39e2 into apache:master Feb 20, 2025
3 checks passed
mneethiraj added a commit that referenced this pull request Feb 20, 2025
Copy link
Contributor

@kumaab kumaab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mneethiraj mneethiraj deleted the RANGER-5151 branch February 22, 2025 00:54
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.

3 participants