lib: fix race between flb_start and flb_destroy#3853
lib: fix race between flb_start and flb_destroy#3853nokute78 merged 1 commit intofluent:masterfrom rittneje:lib-flb-start-fix-race
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. |
nokute78
left a comment
There was a problem hiding this comment.
I added a simple question.
Signed-off-by: Jesse Rittner <rittneje@gmail.com>
Signed-off-by: Jesse Rittner rittneje@gmail.com
Fixes a race condition between
flb_startandflb_destroythat was caused byflb_startleaking 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.