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

Stop worker goroutine on auditd metricset shutdown #7163

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

andrewkroh
Copy link
Member

A worker goroutine for reading events from socket was being leaked when the auditd metricset was stopped. The goroutine will now stop when the AuditClient is closed because it will exited on EBADF (bad file descriptor).

I cleaned up a few tests in the process and added a filter for AUDIT_REPLACE messages.

A worker goroutine for reading events from socket was being leaked when the auditd metricset was stopped. The goroutine will now stop when the AuditClient is closed because it will exited on EBADF (bad file descriptor).

I cleaned up a few tests in the process and added a filter for AUDIT_REPLACE messages.
@exekias
Copy link
Contributor

exekias commented May 23, 2018

jenkins, retest this please

@andrewkroh
Copy link
Member Author

jenkins, test it

@andrewkroh
Copy link
Member Author

jenkins, retest this please

@jsoriano jsoriano merged commit f5aaea8 into elastic:master Jun 5, 2018
@andrewkroh andrewkroh deleted the bugfix/ab/goroutine-leak branch July 3, 2018 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants