-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lib: fix race between flb_start and flb_destroy #3853
Conversation
@rittneje We can build |
@nokute78 It reports a race in both "Test regex" and " Test exclude", but both of those races are already present in master. It does not report any races in "Test invalid" anymore. Test regex:
Test exclude:
Can we investigate those other two races separately? They are not responsible for the sporadic test failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a simple question.
Signed-off-by: Jesse Rittner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM.
Signed-off-by: Jesse Rittner [email protected]
Fixes a race condition between
flb_start
andflb_destroy
that was caused byflb_start
leaking the worker thread in the failure case.Fixes #3852.
@nokute78 Can you test this branch with the thread sanitizer? I am not able to run it on my end.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
There was no more output from Valgrind with this fix.
Documentation
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.