-
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
input: use pthread_key to handle flb_libco_in_params #7102
Conversation
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
One of valgrind error is a data race of ring_buffer. |
One of valgrind error is Some cmt resources are created at fluent-bit/plugins/in_event_type/event_type.c Line 102 in 1d96914
We can test using following configuration.
Valgrind error is like this.
|
thank you. I pushed #7145 to fix the leaks in in_event_type and the lack of release of the ring buffer, thanks for the hints |
I also reported out_vivo_exporter bug. Some monkey plugin may cause it. |
#7061
Note: Valgrind reports too many errors. We should check that this patch causes it.
I modified to use pthread_key to handle
flb_libco_in_params
.Currently
flb_libco_in_params
is a global variable, I suspect it causes race error.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:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Configuration
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.